Skip to content

Conversation

@chewi
Copy link
Contributor

@chewi chewi commented Jan 27, 2026

What this PR does / why we need it:

Firstly, this drops compatibility fallbacks for versions and multiArchVersions in components.json. There are no more instances of these.

Secondly, this massively simplifies the associated code involving jq. It's a powerful tool. 🙂

Lastly, this allow the OS variant to be used in components.json for OS Guard.

testPackagesInstalled() was not testing OS Guard properly because OS and OS_VERSION were being set to Ubuntu and 3.0, matching nothing from components.json.

Several components are not installed for OS Guard, but rather than add yet more shell code to handle this, simplify things by making it possible to use the OS variant in components.json. OS Guard's VARIANT_ID is osguard, but this is upper-cased by our scripts. Use DEFAULT to match an OS without VARIANT_ID.

chewi added 3 commits January 27, 2026 13:15
There are no more instances of this.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
There are no more instances of this.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
jq is very powerful, you know. :)

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@github-actions github-actions bot added the components This pull request updates cached components on Linux or Windows VHDs label Jan 27, 2026
@chewi chewi force-pushed the chewi/simplify-components branch from b43d562 to 33c1e10 Compare January 27, 2026 16:14
chewi added 2 commits January 27, 2026 17:02
testPackagesInstalled() was not testing OS Guard properly because OS and
OS_VERSION were being set to Ubuntu and 3.0, matching nothing from
components.json.

Several components are not installed for OS Guard, but rather than add
yet more shell code to handle this, simplify things by making it
possible to use the OS variant in components.json. OS Guard's VARIANT_ID
is osguard, but this is upper-cased by our scripts. Use DEFAULT to match
an OS without VARIANT_ID.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

components This pull request updates cached components on Linux or Windows VHDs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants