Repository navigation
Move supported CPU/accelerator targets per EESSI version into a TOML file for easier reuse - #1745
Conversation
…file The list of supported CPU and accelerator targets per EESSI version was embedded as env variables in test-software.eessi.io.yml. Move it to .github/workflows/eessi_targets.json so it can be reused by other workflows and scripts (e.g. a check on the bot's build status), without duplicating it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Instance
|
yq infers its output format from the input file extension, so reading a .json file produced quoted JSON strings (e.g. "x86_64/amd/zen2"), which broke the CPU target detection. jq -r prints raw strings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…facts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Logs can now be found in https://github.com/EESSI/software-layer/actions/runs/37325488600?pr=1745 (for the next 14 days). Seems to work completely as intended: I see all of the expected CPU targets for the |
ocaisa
left a comment
There was a problem hiding this comment.
I lean towards yaml just because then we can add comments.
I don't see much point in keeping all the output as artefacts
TOML is parseable from Python's standard library (tomllib, 3.11+) and from the shell with yq, and unlike JSON it allows comments. yq is called with explicit input/output formats (-p toml -o yaml) so the output is raw strings, rather than relying on yq inferring the output format from the file extension. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ocaisa
left a comment
There was a problem hiding this comment.
LGTM will just check the CI run and merge
|
Ah, indeed it is still working, it is catching problems caused by other ingestions happening! https://github.com/EESSI/software-layer/actions/runs/37466497312/job/112278793441 |
The list of supported CPU and accelerator targets per EESSI version was embedded as env variables in test-software.eessi.io.yml. Move it to .github/workflows/eessi_targets.toml so it can be reused by other workflows and scripts (e.g. a check on the bot's build status), without duplicating it.
Marked as Draft since we should probably first add something in an easystack file, and see if the workflows still run correctly, before reviewing / merging is even an option.