Skip to content

Fix autest.sh.in to preserve autest exit code#12732

Merged
bryancall merged 1 commit intoapache:masterfrom
bryancall:fix/autest-exit-code
Dec 4, 2025
Merged

Fix autest.sh.in to preserve autest exit code#12732
bryancall merged 1 commit intoapache:masterfrom
bryancall:fix/autest-exit-code

Conversation

@bryancall
Copy link
Copy Markdown
Contributor

The trailing if-blocks for restoring UDS test directories were overwriting autest's exit code with 0, causing test failures to be silently ignored in CI.

Now we capture the exit code immediately after autest runs and exit with it at the end of the script.

This was discovered while investigating why PR #12727 was passing CI despite having a failing test.

The trailing if-blocks for restoring UDS test directories were
overwriting autest's exit code with 0, causing test failures to
be silently ignored in CI. Now we capture the exit code immediately
after autest runs and exit with it at the end of the script.
@bryancall bryancall added the Bug label Dec 4, 2025
@bryancall bryancall self-assigned this Dec 4, 2025
@bryancall bryancall requested a review from bneradt December 4, 2025 23:18
@bryancall bryancall added this to the 10.2.0 milestone Dec 4, 2025
Copy link
Copy Markdown
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks. We need to preserve the correct exit code for CI to recognize when any of the autests failed.

@bryancall bryancall merged commit 671f6ae into apache:master Dec 4, 2025
15 checks passed
@github-project-automation github-project-automation Bot moved this to For v10.1.1 in ATS v10.1.x Dec 4, 2025
@cmcfarlen cmcfarlen moved this from For v10.1.1 to picked v10.1.0 in ATS v10.1.x Dec 11, 2025
@cmcfarlen cmcfarlen modified the milestones: 10.2.0, 10.1.1 Dec 11, 2025
@cmcfarlen
Copy link
Copy Markdown
Contributor

Cherry-picked to 10.1.x branch

cmcfarlen pushed a commit that referenced this pull request Dec 11, 2025
The trailing if-blocks for restoring UDS test directories were
overwriting autest's exit code with 0, causing test failures to
be silently ignored in CI. Now we capture the exit code immediately
after autest runs and exit with it at the end of the script.

(cherry picked from commit 671f6ae)
@cmcfarlen cmcfarlen moved this from picked v10.1.0 to Picked v10.1.1 in ATS v10.1.x Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Picked v10.1.1

Development

Successfully merging this pull request may close these issues.

3 participants