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

ci: standardize apt-get update/install & misc improvements #5857

Merged
merged 3 commits into from
Jun 18, 2023

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Jun 14, 2023

General changes:

  • Use a single -q on update, as the output is not too long
  • Use a single -q on install, to show all packages at once

GitLab-specific changes:

  • Use DEBIAN_FRONTEND=noninteractive to reduce noise
  • Use --no-install-recommends to avoid installing unnecessary packages
  • Filter out uninteresting lines on install

Note: DEBIAN_FRONTEND does not appear to be needed in the default
GitHub runner container and not many packages are currently being
downloaded/installed in them, so do the above changes only jobs that use
custom Docker images.

kmk3 added 3 commits June 14, 2023 17:30
Example log of it failing:

    $ ./configure
    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/tmp/build':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
There already exists a workflow dedicated to profile checks:

* .github/workflows/profile-checks.yml.

Keep the build and lint jobs separate to make it easier to spot build vs
lint failures in CI.

See also commit c3b42db ("ci: disable sort.py on gitlab jobs as well",
2023-04-10).
General changes:

* Use a single -q on update, as the output is not too long
* Use a single -q on install, to show all packages at once

GitLab-specific changes:

* Use `DEBIAN_FRONTEND=noninteractive` to reduce noise
* Use --no-install-recommends to avoid installing unnecessary packages
* Filter out uninteresting lines on install

Note: `DEBIAN_FRONTEND` does not appear to be needed in the default
GitHub runner container and not many packages are currently being
downloaded/installed in them, so do the above changes only jobs that use
custom Docker images.
Copy link
Collaborator

@glitsj16 glitsj16 left a comment

Choose a reason for hiding this comment

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

LGTM.

@kmk3 kmk3 merged commit 3ad7f94 into netblue30:master Jun 18, 2023
@kmk3 kmk3 deleted the ci-standardize-apt branch June 18, 2023 14:24
kmk3 added a commit that referenced this pull request Jun 19, 2023
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.

2 participants