-
Notifications
You must be signed in to change notification settings - Fork 37
image-create: rewrite using test.thing #8238
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
base: main
Are you sure you want to change the base?
Conversation
e0b98a3
to
55cf670
Compare
lib/testthing.py
Outdated
if self._ssh_control_task is not None: | ||
task = self._ssh_control_task | ||
task.cancel() | ||
await task # Cancellation is async, so wait |
Check notice
Code scanning / CodeQL
Statement has no effect
Copilot Autofix
AI about 1 month ago
Copilot could not generate an autofix suggestion
Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.
be9f74a
to
fe343d3
Compare
image-refresh arch done: https://github.com/cockpit-project/bots/commits/image-refresh-arch-20250913-143503 |
So just for the record:
Next job will be adding a tonne of cloud-init hacks for the various distros that need them. If we plan to |
Drop the --no-save, --upload, and --store arguments. Nobody uses those: image-refresh calls image-upload for itself.
This benefits from the fact that test.thing is async: instead of the very non-DRY parallel pattern for booting machines, waiting on them, etc. we can just do everything in a single simple async function and use asyncio.gather() to run both instances at once.
This is mostly boring. There is really only one nice cleanup enabled by everything being async: instead of repeating `timeout=1800` everywhere, we can just apply it at the toplevel with a single asyncio.wait_for() invocation. Even though it's not a rewrite, apply a bit of `ruff format` here.
7eadcd0
to
545fd0f
Compare
Drop the --no-save, --upload, and --store arguments: nobody uses those, right?