Skip to content

chore: update code-health workflow to allow coverage even if flaky tests are failing - MCP-533#1257

Open
dudaschar wants to merge 3 commits into
mainfrom
chore-allow-test-coverage-on-failure
Open

chore: update code-health workflow to allow coverage even if flaky tests are failing - MCP-533#1257
dudaschar wants to merge 3 commits into
mainfrom
chore-allow-test-coverage-on-failure

Conversation

@dudaschar

Copy link
Copy Markdown
Collaborator

If we have flaky tests and tests on version 24 and 26 are failing, we can still have coverage it v22 succeed, since is the one used to build the coverage report.

Proposed changes

Stop skipping coverage report action if flaky tests fails on node 24 or 26.

Checklist

@dudaschar dudaschar requested a review from a team as a code owner June 17, 2026 15:12
@dudaschar dudaschar requested review from cveticm and removed request for a team June 17, 2026 15:12
@dudaschar dudaschar self-assigned this Jun 17, 2026
@dudaschar dudaschar marked this pull request as draft June 17, 2026 15:20
@dudaschar dudaschar removed the request for review from cveticm June 17, 2026 15:24
@dudaschar dudaschar marked this pull request as ready for review June 17, 2026 16:02
Comment thread .github/workflows/code-health.yml Outdated
node-version: "26"
fail-fast: false
# Ubuntu + Node 22 is the one used for coverage; failures there must not fail the job or block merged coverage.
continue-on-error: ${{ matrix.os == 'ubuntu-latest' && (matrix.node-version == '24' || matrix.node-version == '26') }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we just set it to a blanket continue-on-error: true? Sounds like we don't want to terminate the matrix jobs if we have a failure in one of them.

@dudaschar dudaschar Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

In the upload results step (here) I understand the results are only available if node 22 succeed, no if the tests fails for that version we would want to skip coverage indeed. But I'm not too familiar with github actions, if is actually not a problem, we can set as plain true.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My understanding is that job.continue-on-error controls the jobs in the matrix. You're right that it would also cause the coverage job to execute even if the (ubuntu, 22) variant fails, but then the download artifact step will fail, thus failing the entire coverage job, which is probably just as good as skipping it entirely.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Got it! I updated the rule to be true. Thanks

@dudaschar dudaschar requested a review from nirinchev June 17, 2026 16:17
@dudaschar dudaschar changed the title chore: update code-health workflow to allow coverage failures on specIfic Node versions chore: update code-health workflow to allow coverage even if flaky tests are failing - MCP-533 Jun 17, 2026
@dudaschar dudaschar enabled auto-merge (squash) June 17, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants