Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cardano-testnet | Fix redundant error in creation of artifacts from failed test workspaces #6012

Merged

Conversation

carbolymer
Copy link
Contributor

@carbolymer carbolymer commented Oct 14, 2024

Description

Sometimes after tests in cardano-testnet fail, workspace tar-ing fails as well with this cryptic error:

basename: extra operand ‘build-0-test-baf6b13ac090f575’

(see for example this build log https://github.com/IntersectMBO/cardano-node/actions/runs/11024038455/job/30616484791#step:16:14 )

This is annoying because you have to scroll through multiple lines of tar output to get to the actual test failures.

This PR aims to fix that.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@carbolymer carbolymer changed the title REMOVEME: add artificial failure cardano-testnet | Fix creation of artifacts from failed tests Oct 14, 2024
@carbolymer carbolymer force-pushed the mgalazyn/chore/fix-workspace-artifact-for-failed-tests branch 2 times, most recently from 8dd09e3 to 0c5ac61 Compare October 14, 2024 15:35
@carbolymer carbolymer changed the title cardano-testnet | Fix creation of artifacts from failed tests cardano-testnet | Fix redundant error in creation of artifacts from failed tests Oct 14, 2024
@carbolymer carbolymer changed the title cardano-testnet | Fix redundant error in creation of artifacts from failed tests cardano-testnet | Fix redundant error in creation of artifacts from failed test workspaces Oct 14, 2024
@carbolymer carbolymer marked this pull request as ready for review October 14, 2024 15:38
@carbolymer carbolymer requested review from a team as code owners October 14, 2024 15:38
Copy link
Contributor

@palas palas 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. I understand this PR basically adds double quotes around filenames passed to basename. That will prevent issues when, for example, there are spaces in paths

@carbolymer
Copy link
Contributor Author

carbolymer commented Oct 14, 2024

@palas I wasn't able to reproduce this locally on in CI for some reason. I understand that's what happening, that there's a space in the file name. I don't suspect find to insert spaces out of the blue there, so it looks like the directory has a space in it. I suspect that's the offender:

hprop_transaction = integrationRetryWorkspace 2 "simple transaction build" $ \tempAbsBasePath' -> H.runWithDefaultWatchdog_ $ do
because the basename complains about build-0-somehash.

@carbolymer carbolymer added this pull request to the merge queue Oct 14, 2024
@carbolymer carbolymer removed this pull request from the merge queue due to a manual request Oct 14, 2024
@carbolymer carbolymer force-pushed the mgalazyn/chore/fix-workspace-artifact-for-failed-tests branch from 0c5ac61 to 76c4a6d Compare October 14, 2024 17:27
@Jimbo4350 Jimbo4350 self-requested a review October 14, 2024 19:37
@carbolymer carbolymer merged commit d23ac18 into master Oct 15, 2024
20 of 24 checks passed
@carbolymer carbolymer deleted the mgalazyn/chore/fix-workspace-artifact-for-failed-tests branch October 15, 2024 08:08
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