Skip to content

[CI] Correctly fail failing tests by fixing interpolation of variable#5136

Merged
giordano merged 5 commits intomainfrom
mg/buildkite-test-failures
Jan 11, 2026
Merged

[CI] Correctly fail failing tests by fixing interpolation of variable#5136
giordano merged 5 commits intomainfrom
mg/buildkite-test-failures

Conversation

@giordano
Copy link
Copy Markdown
Collaborator

@giordano giordano commented Jan 11, 2026

Spotted in #5133 (comment).

@giordano giordano added the testing 🧪 Tests get priority in case of emergency evacuation label Jan 11, 2026
Comment thread .buildkite/pipeline.yml Outdated
Comment on lines 116 to 117
echo $test_status
exit $test_status
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.

My hunch is that $test_status is empty because buildkite variable interpolation is terrible, and we need $$test_status instead. Let's see.

Copy link
Copy Markdown
Collaborator Author

@giordano giordano Jan 11, 2026

Choose a reason for hiding this comment

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

@giordano giordano force-pushed the mg/buildkite-test-failures branch from eed4714 to 63c8cd0 Compare January 11, 2026 16:20
Comment thread .buildkite/pipeline.yml
Comment on lines 115 to +117
# Preserve the original test result for Buildkite
exit $test_status
echo "test_status=$${test_status}"
exit "$${test_status}"
Copy link
Copy Markdown
Collaborator Author

@giordano giordano Jan 11, 2026

Choose a reason for hiding this comment

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

@giordano giordano changed the title [CI] Correctly fail failing tests [CI] Correctly fail failing tests by fixing interpolation of variable Jan 11, 2026
@giordano giordano marked this pull request as ready for review January 11, 2026 16:43
@giordano giordano force-pushed the mg/buildkite-test-failures branch from 3d45db2 to 4f416b5 Compare January 11, 2026 16:43
@giordano
Copy link
Copy Markdown
Collaborator Author

giordano commented Jan 11, 2026

There are test failures in Enzyme and Reactant, but because of the bug this PR is addressing they didn't show up before: they were failing already in https://buildkite.com/clima/oceananigans/builds/28384#019ba58a-8ea2-4399-9808-3a0e6dc5daa5/L661 (7e4ffb6, merge commit of #5108), but it wasn't evident. I'd suggest to ignore those errors for the time being and merge this PR somewhat urgently, to keep CI working. If anything, this is a concrete evidence this PR does resolve the issue of tests failures not being reported 😁


For the record, @wsmoses enzyme tests are failing with https://buildkite.com/clima/oceananigans/builds/28414#019badf0-d0dd-4925-b734-4e1b8bada9b0/L666

  EnzymeRuntimeActivityError: Detected potential need for runtime activity.

while Reactant has a "failed to run pass manager on module" error: https://buildkite.com/clima/oceananigans/builds/28414#019bae07-8c05-40b3-b5e5-8a4a3b03a6e9/L743

Edit: resolved, the real problem is that #5108 unintentionally changed the Julia version used for Enzyme/Reactant tests from v1.10 to v1.12.

@giordano giordano mentioned this pull request Jan 11, 2026
Comment thread .buildkite/pipeline.yml
# Run tests (but don't exit immediately so we can upload coverage even if tests fail)
set +e
julia +$JULIA_VERSION -O0 --color=yes --project --code-coverage=user -e 'using Pkg; Pkg.test(coverage="user")'
julia +$JULIA_VERSION_ENZYME -O0 --color=yes --project --code-coverage=user -e 'using Pkg; Pkg.test(coverage="user")'
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.

This was accidentally changed in #5108, and because tests failures weren't being reported anymore this wasn't spotted at all.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.74%. Comparing base (28fc24b) to head (88b64ea).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5136      +/-   ##
==========================================
- Coverage   70.86%   67.74%   -3.13%     
==========================================
  Files         383      391       +8     
  Lines       21401    20921     -480     
==========================================
- Hits        15165    14172     -993     
- Misses       6236     6749     +513     
Flag Coverage Δ
buildkite 67.74% <ø> (+1.43%) ⬆️
julia 67.74% <ø> (+1.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@navidcy navidcy left a comment

Choose a reason for hiding this comment

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

Thanks for catching and fixing this!

@giordano giordano merged commit 27cfa75 into main Jan 11, 2026
70 checks passed
@giordano giordano deleted the mg/buildkite-test-failures branch January 11, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing 🧪 Tests get priority in case of emergency evacuation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants