-
Notifications
You must be signed in to change notification settings - Fork 18
Multi refactoring arch #354
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
Conversation
build_info.json
Outdated
"platforms": [ | ||
"linux/arm64", | ||
"linux/amd64", | ||
"linux/s390x", | ||
"linux/ppc64le" | ||
"linux/amd64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove the platforms from the release stage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accident! Let me add it back
build_info_agent.json
Outdated
@@ -1,5 +1,5 @@ | |||
{ | |||
"platform_mappings": { | |||
"platforms": { | |||
"linux/amd64": { | |||
"agent_suffixes": ["linux_x86_64.tar.gz"], | |||
"tools_suffix": "rhel93-x86_64-{TOOLS_VERSION}.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have an array of suffixes for tools as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmmm yeah probably cleaner, let me do so
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 4b98d0e
build_info.json
Outdated
"linux/arm64", | ||
"linux/amd64", | ||
"linux/s390x", | ||
"linux/ppc64le" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OM is not built for these platforms, the init image doesn't need to be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't lose anything by doing so - i would just add them as this streamlines all the binaries we own
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh - they are close to timeout limit. I do wonder why. Yeah I can kick it off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build_info.json
Outdated
"linux/arm64", | ||
"linux/amd64", | ||
"linux/s390x", | ||
"linux/ppc64le" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Summary
This pull request refactors the agent build and validation logic to improve multi-architecture support and maintainability. It centralizes platform mapping logic, simplifies platform-specific filename resolution, and updates configuration files to reflect platform support changes. Additionally, it documents the new multi-architecture capabilities in the changelog.
Multi-architecture support and configuration updates:
build_info.json
to restrict supported platforms for all images to onlylinux/amd64
, removingarm64
,s390x
, andppc64le
from all relevant entries. [1] [2] [3] [4] [5] [6] [7] [8]build_info_agent.json
fromplatform_mappings
toplatforms
for consistency and clarity.Agent build and validation code refactoring:
PlatformConfiguration
class invalidation.py
to encapsulate platform mapping logic, lazy-load build info, and provide unified methods for generating agent and tools build arguments.platforms
key and centralized filename resolution logic, including helper methods for finding valid filenames and checking URL existence. [1] [2] [3] [4] [5]atomic_pipeline.py
to use the new build argument generation functions from the refactored validation logic. [1] [2]atomic_pipeline.py
.Documentation:
Proof of Work
Checklist
skip-changelog
label if not needed