-
Notifications
You must be signed in to change notification settings - Fork 57
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
test/scripts/generate-gitlab-ci: mimic matrix syntax of jobnames #1230
Conversation
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.
This is a much smaller change than I thought it would be and, more importantly, IT WORKS!
Makes the gitlab CI pipeline view tidier too, though not sure if it's better or worse for navigating the jobs. Probably equally difficult, if I'm being honest.
Thanks. LGTM!
#1225 fixes the linting problem and needs a second approval |
d5b6170
to
990f31e
Compare
Rebased for linter config fix. |
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.
Looks nice.
The job_names are used in metrics (cloudability) to get an overview of runtimes per "curated_job_name". This "curated_job_name" is deduced by splitting by ":", which exists when using matrix-jobs. e.g. https://github.com/osbuild/osbuild-composer/blob/a237447ca06c3f302e41c710a64e86577cfd2537/.gitlab-ci.yml#L111 As we generate the jobs with the script `generate-gitlab-ci`, this implementation should work to mimic the behavior and have the same names as if they were matrix-jobs.
990f31e
to
764a942
Compare
@thozza could this cause problems, from your experience with CI/CD stuff? |
…rebased for #1226, too |
Something got stuck in the queue and I had to remove it and queue it up again. |
The job_names are used in metrics (cloudability) to get an overview of run times per "curated_job_name". This "curated_job_name" is deduced by splitting by ":", which exists when using matrix-jobs. e.g. https://github.com/osbuild/osbuild-composer/blob/a237447ca06c3f302e41c710a64e86577cfd2537/.gitlab-ci.yml#L111
As we generate the jobs with the script
generate-gitlab-ci
, this implementation should work to mimic the behavior and have the same names as if they were matrix-jobs.I'll set to draft to collect enough feedback if this is a good idea…