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

This commit considers $CI to generate shorter log console output #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NotTheEvilOne
Copy link

What this PR does / why we need it:
To support short log console messages if executed in CI environments $CI is considered nd if set to true removes date&time information.

Which issue(s) this PR fixes:
Fixes #36

@NotTheEvilOne NotTheEvilOne requested a review from a team December 19, 2024 16:01
builder/make_log Fixed Show fixed Hide fixed
@NotTheEvilOne NotTheEvilOne force-pushed the prs/support-shorter-logs-for-CI branch from aeab082 to fe171c6 Compare December 19, 2024 16:04
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -eufo pipefail
set -efo pipefail
Copy link
Contributor

Choose a reason for hiding this comment

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

removing the set -u is not great (might result in uncaught errors down the line).... instead of relying on this, please do something like "${CI:-false}" to handle cases where $CI is not set.

@@ -97,6 +97,7 @@ if [ "$resolve_cname" = 1 ]; then
fi

make_opts=(
CI="$CI"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if $CI is the most intuitive control var name.... maybe make it more explicit what this dose, along the lines of NO_PRINT_TIMESTAMPS or something 🤔

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.

use a shorter log format without timestamp on github actions
2 participants