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

Fix envvars + propagation in lab pipeline (infra) #1495

Merged
merged 7 commits into from
Sep 25, 2024
Merged

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Sep 23, 2024

Description

The lab pipeline was failing on 24.04 because one of the packages was using the interactive frontend to fetch some value from the user. This was because the apt command was launched without the -E flag, therefore the environment was not inherited from the parent shell, clearing the cusom environment. Additionally, the DEBIAN_FRONTEND envvar was unset, leaving to the specific workflow the chore to set it. This fixes both of these issues.

Minor: this also adds grouping to the installer output, making it easier to read
Minor: this also enables exit on error, as this makes the output easier to read on failure

Resolved issues

Fixes: pipeline currently not working on noble (not working if any dependency asks for manual interaction)
Fixes: CHECKBOX-1579

Documentation

N/A

Tests

Failing run: https://github.com/canonical/checkbox/actions/runs/10958861773/job/30429994853
Passing run post patch: https://github.com/canonical/checkbox/actions/runs/10989122085/job/30506715951

After edit inline DEBIAN_FRONTED

@Hook25 Hook25 requested a review from boukeas September 23, 2024 07:01
@Hook25 Hook25 merged commit aacb28b into main Sep 25, 2024
11 of 12 checks passed
@Hook25 Hook25 deleted the hotfix_frontend_shutil branch September 25, 2024 09:31
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.

2 participants