Skip to content

fix(util): exit non-zero when uploadMetadata publish fails - #4569

Open
vvbandeira wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:upload-metadata-publish-error
Open

vvbandeira wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:upload-metadata-publish-error

Conversation

@vvbandeira

Copy link
Copy Markdown
Member

A failed Pub/Sub publish printed a warning, and the script exited 0. When the publish credential was rejected with a 401, CI builds passed, but the QoR dashboard received no results. The dashboard baseline then stayed on an old build. Later builds were compared against that old build. They failed on metric changes from many merges, not from their own commit.

Exit 1 when the pipeline report or a v1 fallback message fails to publish. CI then shows the upload failure in the build that has it.

A failed Pub/Sub publish printed a warning, and the script exited 0.
When the publish credential was rejected with a 401, CI builds passed,
but the QoR dashboard received no results. The dashboard baseline then
stayed on an old build. Later builds were compared against that old
build. They failed on metric changes from many merges, not from their
own commit.

Exit 1 when the pipeline report or a v1 fallback message fails to
publish. CI then shows the upload failure in the build that has it.

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates flow/util/uploadMetadata.py to ensure that Pub/Sub publish failures result in a non-zero exit status, preventing CI builds from passing when data fails to upload. It tracks failed publishes in publish_v1_per_design, updates warning logs to error logs, and exits with an error code if any failures occur. There are no review comments to address, and I have no additional feedback to provide.

@openroad-ci

Copy link
Copy Markdown
Member

🔍 QoR check

Metrics reflect the PR merge build — i.e. what will land on the target branch.

Commit 2999156 · Jenkins build #1 · Baseline: build · View build on dashboard

62 design(s) checked — 0 with regression(s), 0 without a comparable baseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants