chore(cleanup): Cleaned up >/dev/null in Dockerfile and fixed em dash "problem"#2024
chore(cleanup): Cleaned up >/dev/null in Dockerfile and fixed em dash "problem"#2024georglauterbach merged 4 commits intomasterfrom
Conversation
|
Regarding the verbosity, can't stdout be redirected to We could also just make a note of it in debugging/troubleshooting contributor docs if the verbosity is an issue? There's also |
|
The problems we encountered over time stem from the fact that we actually needed output from Note: Tests are failing due to the infamous quota exceeded problem. We should monitor this. |
Oh were there other cases of this happening? I think if the verbosity won't bother anyone we can just have it. But if it's to keep say CI logs more terse when the verbosity is usually noise, lets minimize it with a documented way to manually bring back verbose output when actual problems with builds are encountered? (which I assume isn't that frequent in ratio to number of builds)
My main issue with Consistency wise, my concern was that one case was Fixing that consistency would be good, they can remain to keep the output less noisy and we just document a find & replace command with
I'm not familiar with this. It's specific to a dovecot test, not a CI limit being exceeded? Do we have a way to reliably reproduce it? |
I would avoid this solution under all circumstances. I think this would be bad practice, having to look at the documentation just for building or debugging errors. I'm not a fan of very verbose output too, but I think that the current level of verbosity is fine.
Yes, I do not want to silence every last output, which is why the
Why would one want to do that? Besides
The inconsistency issues are now fixed too. Only in
This actually was intended, as the order makes a difference. The usage of
Like I said, I would very much try to void this solution.
It's inherent to the tests, and I have not seen it for a long time. It's not a CI thing and we sadly cannot reliably reproduce it. |
|
Documentation preview for this PR is ready! 🎉 Built with commit: 8dfdc4b |
There could always be an inline comment note at the top of the Dockerfile about it, it wouldn't be hard to miss. If there's no issue with the verbosity and wanting to keep that toned down in logs for the majority of builds where this isn't an issue, that's fine too (it was just a suggestion since there was clear efforts to reduce the output). FWIW, there does appear to be a bunch of other errors/warnings in the output elsewhere that don't negatively affect the build from progressing, I haven't noted these down and I'm not sure how relevant they are to be concerned about.
This was my fault. I didn't know any better 😅 I didn't know originally that these were Bash specific things, I just noticed that I got what I thought was more actionable errors... I'm not used to using a It took a while to realize that the error was coming from
Was it intentional to use it on one
👍 Do I understand
FROM docker.io/debian:buster-slim
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN \
apt-get -qq update && \
apt-get -qq install apt-utils 2>&1 && \
apt-get -qq dist-upgrade && \
apt-get -qq install postfix 2>&1
Regarding I notice there is Regarding
|
| apt-get -y -qq install apt-utils && \ | ||
| apt-get -y -qq dist-upgrade && \ | ||
| apt-get -y -q install postfix && \ | ||
| apt-get -y -q --no-install-recommends install \ |
There was a problem hiding this comment.
| apt-get -y -qq install apt-utils && \ | |
| apt-get -y -qq dist-upgrade && \ | |
| apt-get -y -q install postfix && \ | |
| apt-get -y -q --no-install-recommends install \ | |
| apt-get -qq install apt-utils && \ | |
| apt-get -qq dist-upgrade && \ | |
| apt-get -qq install postfix && \ | |
| apt-get -qq --no-install-recommends install \ |
|
Oops, looks like I was a little too slow 😅 EDIT: Ah... it was my fault, I approved and it was set to auto-merge with a single approval 😬 |
😆 I was confused because I could not remember merging this myself. But yes, I enabled auto-merge :D I will create a follow-up PR :) Your changes should be implemented! Regarding your notes:
Exactly.
Yes :) |
Description
Removed
>/dev/nullstatements from theDockerfileto better detect errors and warnings during the build phase. This increases verbosity. I also replaced the em dashes–with normal dashes to stay ASCII conform.Closes #2014
Closed #1954 as #1954 PR has become stale and outdated due to this PR
Partly related to #2023
Type of change
Checklist:
docs/)