Skip to content

Conversation

allisonkarlitskaya
Copy link
Member

@allisonkarlitskaya allisonkarlitskaya commented Sep 12, 2025

Drop the --no-save, --upload, and --store arguments: nobody uses those, right?

  • image-refresh arch

@allisonkarlitskaya allisonkarlitskaya force-pushed the image-create-tt branch 3 times, most recently from e0b98a3 to 55cf670 Compare September 12, 2025 09:39
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

This 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.

@allisonkarlitskaya allisonkarlitskaya force-pushed the image-create-tt branch 2 times, most recently from be9f74a to fe343d3 Compare September 12, 2025 12:39
@cockpituous cockpituous changed the title image-create: rewrite using test.thing WIP: 8f27d74c82bf: [no-test] image-create: rewrite using test.thing Sep 12, 2025
@cockpituous cockpituous changed the title WIP: 8f27d74c82bf: [no-test] image-create: rewrite using test.thing image-create: rewrite using test.thing Sep 12, 2025
@cockpituous
Copy link
Contributor

@cockpituous cockpituous changed the title image-create: rewrite using test.thing WIP: 9bbdf1ee34e8: [no-test] image-create: rewrite using test.thing Sep 13, 2025
@cockpituous
Copy link
Contributor

@cockpituous
Copy link
Contributor

@cockpituous cockpituous changed the title WIP: 9bbdf1ee34e8: [no-test] image-create: rewrite using test.thing image-create: rewrite using test.thing Sep 13, 2025
@allisonkarlitskaya
Copy link
Member Author

allisonkarlitskaya commented Sep 14, 2025

So just for the record:

  • the new image-create (test.testing) produced a new arch image, which
  • the new image-diff (test.thing) was able to generated a meaningful diff for, and
  • the new image-customize (test.thing) was able to customize for both cockpit repo and all the other projects, which
  • the existing (libvirt) bots infra was able to run tests on

Next job will be adding a tonne of cloud-init hacks for the various distros that need them. If we plan to image-create in test.thing then we need it at this stage already because the first (and only) contact will then be via vsock, so we don't have a mechanism to setup the workarounds otherwise.

allisonkarlitskaya and others added 7 commits September 29, 2025 10:35
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants