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

workflows: ensure we do non-interactive set up #8107

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

patrick-stephens
Copy link
Contributor

@patrick-stephens patrick-stephens commented Oct 30, 2023

Actuated builds are failing due to awscli installation which also installs tzdata on the runner and then wants an interactive set up of timezone info.

https://github.com/fluent/fluent-bit/actions/runs/6688949128/job/18177060088#step:9:428

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
 1. Africa 3. Antarctica 5. Arctic 7. Atlantic 9. Indian 11. US
 2. America 4. Australia 6. Asia 8. Europe 10. Pacific 12. Etc

Also set a timeout for that step to 5 minutes to prevent it hitting 6 hours.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing

Failing example:

$ docker run --rm -t ubuntu:22.04 sh -c 'apt-get update && apt-get install -y awscli'
...
Setting up tzdata (2023c-0ubuntu0.22.04.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.

  1. Africa  2. America  3. Antarctica  4. Australia  5. Arctic  6. Asia  7. Atlantic  8. Europe  9. Indian  10. Pacific  11. US  12. Etc
Geographic area: 
... <waits here>

Works when we ensure we have non-interactive setup:

$ docker run --rm -e DEBIAN_FRONTEND=noninteractive -t ubuntu:22.04 sh -c 'apt-get update && apt-get install -y awscli'
...
Setting up awscli (1.22.34-1) ...
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.


@patrick-stephens patrick-stephens merged commit 0ae1dba into master Oct 30, 2023
16 checks passed
@patrick-stephens patrick-stephens deleted the fixup_aws_install branch October 30, 2023 14:23
leonardo-albertovich pushed a commit that referenced this pull request Nov 3, 2023
* workflows: ensure we do non-interactive set up

Signed-off-by: Patrick Stephens <[email protected]>

* workflows: ensure we do non-interactive set up

Signed-off-by: Patrick Stephens <[email protected]>

---------

Signed-off-by: Patrick Stephens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants