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

Pass {USER, COREOS}_DATA separately in testcloud #3266

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

frantisekz
Copy link
Collaborator

@frantisekz frantisekz commented Oct 7, 2024

Together with now staged testcloud-0.11.0, should resolve #3235 once and for all.

Required testcloud is built at: https://copr.fedorainfracloud.org/coprs/frantisekz/testcloud-temp/

The {USER, COREOS}_DATA variables were affected by threads overwriting them directly in testcloud's config object as observed in #3244 (comment) and following comments. Testcloud-side change can be seen here: https://pagure.io/testcloud/c/ee1202bcf57cd475f4586f3693e2127f9a12e92e?branch=master .

Only these two variables can differ between various instances in tmt's use of testcloud, the others are kept separately since the domain api switchover last year: #2078 .

Co-authored by @jskladan

@happz @psss

Pull Request Checklist

  • implement the feature
  • include a release note

@frantisekz frantisekz force-pushed the tc_race branch 4 times, most recently from 768a3ca to 732767f Compare October 7, 2024 20:25
@frantisekz frantisekz force-pushed the tc_race branch 3 times, most recently from aa3927b to 98b1b23 Compare October 10, 2024 09:45
@happz happz added this to the 1.38 milestone Oct 10, 2024
@happz happz added the plugin | testcloud The testcloud virtual provision plugin label Oct 10, 2024
@psss psss added the ci | full test Pull request is ready for the full test execution label Oct 10, 2024
@psss
Copy link
Collaborator

psss commented Oct 10, 2024

/packit test

@psss psss changed the title Pass {USER, COREOS}_DATA separately in testcloud Pass {USER, COREOS}_DATA separately in testcloud Oct 10, 2024
@frantisekz
Copy link
Collaborator Author

/packit test

@frantisekz frantisekz force-pushed the tc_race branch 3 times, most recently from 520b077 to 1636374 Compare October 10, 2024 13:21
@frantisekz
Copy link
Collaborator Author

/packit test

2 similar comments
@frantisekz
Copy link
Collaborator Author

/packit test

@frantisekz
Copy link
Collaborator Author

/packit test

@frantisekz
Copy link
Collaborator Author

So, the CoreOS tests failed previously, the upcoming run has https://pagure.io/testcloud/pull-request/204 included which should resolve that too.

tldr. previously, we could use sock.connect_ex(("127.0.0.1", self.get_instance_port())) in testcloud CoreOS/user sessions to verify that ssh port is open, but something had changed in how this works in libvirt/qemu, and the call now instantly returns OK.

@frantisekz
Copy link
Collaborator Author

@psss Reading through the results, if I am not missing anything, the issues are mainly:

fail: Command 'rpm -q --whatprovides tree-but-spelled-wrong diffutils || dnf install -y tree-but-spelled-wrong diffutils' returned 1.

which wouldn't seem caused by testcloud/this PR, and fedora-coreos failures, which I have problems reproducing locally. All in all, this seems to resolve the mysterious failures at least for normal Fedora Cloud :/

.packit.yaml Outdated Show resolved Hide resolved
@psss
Copy link
Collaborator

psss commented Oct 18, 2024

Bumped the require again in 8f4d1db to get the regression fix.

@psss
Copy link
Collaborator

psss commented Oct 18, 2024

Fixed timeout and adjusted the test to exercise the custom command path only: 06d5618
Filed a new issue to improve the timeout handling: #3305
Included a short release note in: 12380b3

Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Now seems to be working nice! 🎉

@psss
Copy link
Collaborator

psss commented Oct 18, 2024

@happz, and it's green! \o/

@happz happz merged commit 7563006 into teemtee:main Oct 21, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci | full test Pull request is ready for the full test execution plugin | testcloud The testcloud virtual provision plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in the testcloud plugin
3 participants