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

actions: apt: Fix apt output not shown in gitlab CI #281

Closed
wants to merge 2 commits into from

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Aug 13, 2021

No description provided.

Currently we print to the log to stdout whatever the downstream
command prints to stdout|stderr and let the shell on the host deal
with the handling of any special characters. In the case of some
non-interactive shells (like GitLab CI) any lines printed to its
stdout with special characters (like \b or \r) are simply not
printed to the web interface.

Some commands used by actions (apt, mkfs...) use these special
characters to print progress to the user, which is useful in
interactive environments but can completely break non-interactive
usage like in Debos.

Let's fix these environments by removing the offending characters
before printing the output to the shell.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Showing the update progress can mess up non-interactive shells
where moving the cursor is unsupported.

For instance, GitLab CI just doesn't print any line which
attempts to move the cursor, which means the output for the apt
commands is not shown.

Disable the apt progress from being shown, only showing the apt
output log.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
commands.go Show resolved Hide resolved
@obbardc obbardc closed this Jul 11, 2023
@obbardc obbardc deleted the wip/obbardc/fix-apt-output branch July 25, 2023 12:54
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.

None yet

3 participants