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

[Backport perf-v15] fix(stress_thread): stop assuming current path #9566

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 17, 2024

cause code assumed HDR to be located on $HOME, in some situations like in the intergation tests of c-s, it wasn't finding it and failing like the following:

FAILED unit_tests/test_cassandra_stress_thread.py::test_01_cassandra_stress -
       invoke.exceptions.UnexpectedExit: Encountered a bad command exit code!

Command: 'cp cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr
          /home/ubuntu/scylla-cluster-tests/unit_tests/
          cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr'
Exit code: 1

Stdout:

Stderr:

cp: cannot stat 'cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr': No such file or directory

Testing

  • [ ]

PR pre-checks (self review)

  • I added the relevant backport labels
  • I didn't leave commented-out/debugging code

Reminders

  • Add New configuration option and document them (in sdcm/sct_config.py)
  • Add unit tests to cover my changes (under unit-test/ folder)
  • Update the Readme/doc folder relevant to this change (if needed)

(cherry picked from commit da6e8bb)

Parent PR: #9555

cause code assumed HDR to be located on `$HOME`, in some situations
like in the intergation tests of c-s, it wasn't finding it and failing
like the following:

```
FAILED unit_tests/test_cassandra_stress_thread.py::test_01_cassandra_stress -
       invoke.exceptions.UnexpectedExit: Encountered a bad command exit code!

Command: 'cp cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr
          /home/ubuntu/scylla-cluster-tests/unit_tests/
          cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr'
Exit code: 1

Stdout:

Stderr:

cp: cannot stat 'cs-hdr-write-l1-c0-k1-4bf4051d-abc0-4c0d-840d-f0af5c6b6e8a.hdr': No such file or directory
```

(cherry picked from commit da6e8bb)
@mergify mergify bot assigned fruch Dec 17, 2024
@fruch fruch merged commit cd6fc1f into branch-perf-v15 Dec 17, 2024
7 checks passed
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.

1 participant