Skip to content
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

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

schuellerf
Copy link
Contributor

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…

Copy link
Member

@achilleas-k achilleas-k left a 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!

@achilleas-k
Copy link
Member

#1225 fixes the linting problem and needs a second approval

@achilleas-k achilleas-k force-pushed the mimic-matrix-jobnames branch from d5b6170 to 990f31e Compare February 17, 2025 21:01
@achilleas-k
Copy link
Member

Rebased for linter config fix.

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Looks nice.

@schuellerf schuellerf marked this pull request as ready for review February 18, 2025 08:47
@schuellerf schuellerf requested review from thozza and a team as code owners February 18, 2025 08:47
@schuellerf schuellerf requested a review from mvo5 February 18, 2025 08:47
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.
@schuellerf schuellerf force-pushed the mimic-matrix-jobnames branch from 990f31e to 764a942 Compare February 18, 2025 08:48
@schuellerf
Copy link
Contributor Author

@thozza could this cause problems, from your experience with CI/CD stuff?

@schuellerf
Copy link
Contributor Author

…rebased for #1226, too

@achilleas-k achilleas-k added this pull request to the merge queue Feb 18, 2025
@achilleas-k achilleas-k removed this pull request from the merge queue due to a manual request Feb 18, 2025
@achilleas-k achilleas-k added this pull request to the merge queue Feb 18, 2025
@achilleas-k
Copy link
Member

Something got stuck in the queue and I had to remove it and queue it up again.

Merged via the queue into osbuild:main with commit 0c97548 Feb 18, 2025
18 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.

3 participants