Skip to content

ci: formatting and misc improvements #5802

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

Merged
merged 8 commits into from
Apr 28, 2023
Merged

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Apr 25, 2023

Commits:

$ git log --reverse --pretty='* %s' master..
* ci: fix commented sort.py code in alpine job
* ci: ignore build workflows on more workflows
* ci: simplify test steps in build.yml
* ci: line-wrap and split/join some commands
* ci: use one command per line instead of chaining them
* ci: improve quotes in gitlab ci
* ci: print some program versions
* ci: print env-related settings in each job

The changes are mostly about making the workflows easier to read and debug.

This is a follow-up to #5795.

Relates to #5481.

kmk3 added 5 commits April 24, 2023 23:16
This amends the following commits:

* 370b9db ("gitlab pipeline fixes", 2020-04-21)
* 42fdea7 ("gitlab", 2020-04-21)

Added on commit 2e14c1a ("Adding sort.py to GitLab CI (netblue30#2973)",
2019-09-21).
This makes each workflow ignore every other workflow.

Relates to netblue30#5481.
Kind of relates to commit 6d0c751 ("split make test-github into
different actions", 2023-01-31).
For increased readability.

Note: `>` basically turns each newline into a space while `|` keeps
newlines as is.  Both remove leading indentation.

Note2: On jobs using `apt-get install`, this commit moves package names
to their own line, to make it easier to compare which packages are being
installed across such jobs.
To turn each step in question into a normal multi-line shell script.

Note that each step already runs with `set -e` by default.
@kmk3 kmk3 force-pushed the ci-format-improve branch 2 times, most recently from f6fa3b5 to 4861b79 Compare April 27, 2023 17:01
kmk3 added 3 commits April 28, 2023 04:45
Changes:

* Add quotes around variables
* Use single quotes where applicable
To make debugging easier.
To make debugging easier.

Use a separate shell script instead of just a make target to ensure that
it can safely run before ./configure and without having make installed.
@kmk3 kmk3 force-pushed the ci-format-improve branch from 4861b79 to 339d395 Compare April 28, 2023 07:47
@kmk3 kmk3 merged commit 7661bd8 into netblue30:master Apr 28, 2023
@kmk3 kmk3 deleted the ci-format-improve branch April 28, 2023 10:10
kmk3 added a commit that referenced this pull request Apr 28, 2023
kmk3 added a commit that referenced this pull request Oct 29, 2023
It's the only workflow missing it.

See commit 339d395 ("ci: print env-related settings in each job",
2023-04-22) / PR #5802.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

1 participant