Skip to content

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Aug 18, 2023

Its been a long time that this has been broken. The run sections in build.yaml were executing shell scripts without '-e' and thus they would not exit on failure.

The end result was that if something went amuck you had to parse through long error logs for what that was.

Also add '-x' here to make it more obvious where things failed.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@smoser smoser requested review from rchincha and hallyn as code owners August 18, 2023 19:16
@rchincha
Copy link
Contributor

  • test x '!=' x--no-po4a
  • cd po4a
  • sh update-po
    po4a/update-po: The program 'po4a' was not found.
    po4a/update-po: Translated man pages were not generated.
    error: run commands failed: execute failed: exit status 1

@smoser smoser force-pushed the fix/build.yaml-should-be-set-e branch from 1de40af to d3ed042 Compare August 21, 2023 14:10
@hallyn
Copy link
Contributor

hallyn commented Aug 21, 2023

Heh, age-old question: if my testsuite is broken so it doesn't catch failures, and you fix that, are you responsible for fixing the newly caught errors? :)

Thanks, Scott.

@hallyn hallyn self-requested a review August 21, 2023 14:40
@rchincha
Copy link
Contributor

2023-08-21T15:07:26.7148382Z not ok 37 can read previous version's cache in 6sec
2023-08-21T15:07:26.7148766Z # (from function run_as' in file test/helpers.bash, line 79, 2023-08-21T15:07:26.7149070Z # in test file test/caching.bats, line 212) 2023-08-21T15:07:26.7149383Z # run_as "$oldbin" --debug build' failed

^ see only this failure, which is expected

Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha
Copy link
Contributor

The base branch requires all commits to be signed. Learn more about signing commits.

^?

Its been a long time that this has been broken.  The run sections
in build.yaml were executing shell scripts without '-e' and thus
they would not exit on failure.

The end result was that if something went amuck you had to parse
through long error logs for what that was.

Also
 * Add '-x' to sh to make it more obvious where things failed.
 * Add the po4a package, which is used as part of the xz build.

Signed-off-by: Scott Moser <smoser@brickies.net>
@smoser smoser force-pushed the fix/build.yaml-should-be-set-e branch from d3ed042 to d3e18af Compare August 22, 2023 13:05
@smoser
Copy link
Contributor Author

smoser commented Aug 22, 2023

The base branch requires all commits to be signed. Learn more about signing commits.

^?

✔️ and rebased after landing #485, so this should actually run.

@rchincha rchincha merged commit 3134d84 into project-stacker:main Aug 22, 2023
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.

3 participants