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

fix(IDX): check that bazel-out exists #4176

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows-source/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ jobs:
"$CI_PROJECT_DIR"/ci/scripts/run-build-ic.sh
rm -rf "/cache/job/${CI_JOB_NAME}/${CI_RUN_ID}"

# List and aggregate all SHA256SUMS files.
find -L bazel-out -name SHA256SUMS | xargs cat | sort | uniq > SHA256SUMS
# List and aggregate all SHA256SUMS files (if bazel-out exists)
if [ -e bazel-out]; then
find -L bazel-out -name SHA256SUMS | xargs cat | sort | uniq > SHA256SUMS
else
touch SHA256SUMS
fi

env:
BAZEL_COMMAND: build --config=ci
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ jobs:
"$CI_PROJECT_DIR"/ci/scripts/run-build-ic.sh
rm -rf "/cache/job/${CI_JOB_NAME}/${CI_RUN_ID}"

# List and aggregate all SHA256SUMS files.
find -L bazel-out -name SHA256SUMS | xargs cat | sort | uniq > SHA256SUMS
# List and aggregate all SHA256SUMS files (if bazel-out exists)
if [ -e bazel-out]; then
find -L bazel-out -name SHA256SUMS | xargs cat | sort | uniq > SHA256SUMS
else
touch SHA256SUMS
fi
env:
BAZEL_COMMAND: build --config=ci
BAZEL_TARGETS: //...
Expand Down
15 changes: 10 additions & 5 deletions ci/bazel-scripts/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,13 @@ fi
rm "$url_out"

# List and aggregate all SHA256SUMS files.
for shafile in $(find bazel-out/ -name SHA256SUMS); do
if [ -f "$shafile" ]; then
echo "$shafile"
fi
done | xargs cat | sort | uniq >SHA256SUMS
if [ -e ./bazel-out/ ]; then
for shafile in $(find bazel-out/ -name SHA256SUMS); do
if [ -f "$shafile" ]; then
echo "$shafile"
fi
done | xargs cat | sort | uniq >SHA256SUMS
else
# if no bazel-out, assume no targets were built
touch SHA256SUMS
fi