Skip to content

boot-aws: drop the redundant --arch flag - #2811

Merged
larskarlitski merged 2 commits into
osbuild:mainfrom
mmummigatti:remove-architecture-parameter
Nov 9, 2026
Merged

larskarlitski merged 2 commits into
osbuild:mainfrom
mmummigatti:remove-architecture-parameter

Conversation

@mmummigatti

@mmummigatti mmummigatti commented Nov 2, 2026 •

Copy link
Copy Markdown

Summary

boot-aws used --arch only to select an EC2 instance type from a hard-coded mapping of x86_64 and aarch64.

This change removes --arch and makes --instance-type mandatory instead. The architecture-to-instance-type mapping is moved to imgtestlib.boot.aws_instance_type(), keeping the boot-test configuration within the test harness.

Compatibility

Breaking change: --instance-type was previously optional and is now required for both setup and run. The existing caller, cmd_boot_aws(), has been updated accordingly.

@croissanne croissanne left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you. I can see how it makes sense as the instance-type determines the architecture. That said I think the reason why instance-type was optional is that it's easier to remember the name of the architecture than the name of an instance type that fits whatever image you're trying to boot (for those rare cases you're running it locally). Wondering what others think here. Note that this is mostly just a test utility so moving the logic from the boot-aws binary into the testlib is a lateral move imo.

@larskarlitski

Copy link
Copy Markdown
Contributor

That said I think the reason why instance-type was optional is that it's easier to remember the name of the architecture than the name of an instance type that fits whatever image you're trying to boot (for those rare cases you're running it locally).

Yeah... the trade off is between an extra option and logic to disambiguate and some convenience. @mmummigatti and I decided this way because it is a tool that rarely run manually and we preferred the simplicity of just having one.

Something needs to be done though, because the current state is confusing (when passing both arguments accidentally).

@brlane-rht brlane-rht left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You have a merge commit, we only allow fast-forward merges.

Comment thread cmd/boot-aws/main.go Resolved
Comment thread cmd/boot-aws/main.go Resolved
@mmummigatti
mmummigatti force-pushed the remove-architecture-parameter branch from c801306 to c83b813 Compare November 5, 2026 08:09
@mmummigatti

Copy link
Copy Markdown
Author

You have a merge commit, we only allow fast-forward merges.

Removed the merge commit and updated the branch with a linear history. The PR now contains only the two feature commits.

@brlane-rht
brlane-rht self-requested a review November 5, 2026 17:29

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok to me

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with Sanne's comment that this is a bit of a lateral move, but I don't mind the change and this does make sense from a tool simplification perspective.

LGTM

@achilleas-k
achilleas-k added this pull request to the merge queue Nov 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 6, 2026
@larskarlitski
larskarlitski added this pull request to the merge queue Nov 9, 2026
Merged via the queue into osbuild:main with commit d4f5eff Nov 9, 2026
65 of 66 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.

5 participants