Skip to content

Commit

Permalink
chore: suppress noisy logs (#22764)
Browse files Browse the repository at this point in the history
* ci: aqua policy allow

* chore: set -o pipefail

* chore: stop using -x

* chore: suppress noisy stderr
  • Loading branch information
suzuki-shunsuke committed May 11, 2024
1 parent 7d14233 commit 059cfea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/debug-with-action-tmate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.28.0
policy_allow: "true"
env:
AQUA_GITHUB_TOKEN: ${{github.token}}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -eu
set -euo pipefail

container_name=${1:-aqua-registry}

Expand Down
4 changes: 2 additions & 2 deletions scripts/scaffold.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -euxo pipefail
set -eu

pkg=$1
cmd=$2
Expand All @@ -15,7 +15,7 @@ if [ -n "$limit" ]; then
fi

# shellcheck disable=SC2086
docker exec -ti -w /workspace aqua-registry bash -c "rm pkg.yaml || :"
docker exec -ti -w /workspace aqua-registry bash -c "rm pkg.yaml 2>/dev/null || :"
docker exec -ti -w /workspace aqua-registry bash -c "aqua gr $opts --out-testdata pkg.yaml \"$pkg\" > registry.yaml"
mkdir -p "pkgs/$pkg"
docker cp "aqua-registry:/workspace/pkg.yaml" "pkgs/$pkg/pkg.yaml"
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ docker cp "pkgs/$pkg/registry.yaml" "$container_name:/workspace/registry.yaml"

for os in linux darwin; do
for arch in amd64 arm64; do
docker exec "$container_name" bash -c "rm aqua-checksums.json || :"
docker exec "$container_name" bash -c "rm aqua-checksums.json 2>/dev/null || :"
if ! docker exec "$container_name" env AQUA_GOOS="$os" AQUA_GOARCH="$arch" aqua i; then
echo "[ERROR] Build failed $os/$arch" >&2
docker exec -ti "$container_name" env AQUA_GOOS="$os" AQUA_GOARCH="$arch" bash
Expand Down

0 comments on commit 059cfea

Please sign in to comment.