-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
CI (Buildkite): upload musl64 nightly binaries to S3 #42495
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
agents: | ||
queue: "julia" | ||
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing | ||
sandbox.jl: "true" | ||
os: "linux" | ||
|
||
steps: | ||
- label: "upload_s3_musl64" | ||
key: upload_s3_musl64 | ||
depends_on: package_musl64 | ||
if: | | ||
(pipeline.slug == "julia-master") && (build.branch == "master") && (build.pull_request.id == null) | ||
commands: | | ||
echo "--- Print the full and short commit hashes" | ||
SHORT_COMMIT_LENGTH=10 | ||
SHORT_COMMIT=`echo $${BUILDKITE_COMMIT:?} | cut -c1-$${SHORT_COMMIT_LENGTH:?}` | ||
ARTIFACT_FILENAME="julia-$${SHORT_COMMIT:?}-musl64.tar.gz" | ||
|
||
echo "--- Download build artifacts" | ||
rm -rf $${ARTIFACT_FILENAME:?} | ||
buildkite-agent artifact download $${ARTIFACT_FILENAME:?} . | ||
|
||
echo "--- Upload build artifacts to S3" | ||
# Upload to the following URL: | ||
# https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-musl64.tar.gz | ||
export NEW_ARTIFACT_FILENAME="julia-latest-musl64.tar.gz" | ||
export BUILDKITE_ARTIFACT_UPLOAD_DESTINATION="s3://julialangnightlies-s3/bin/linux/x64" | ||
export BUILDKITE_S3_DEFAULT_REGION="us-east-1" | ||
if [[ "$${ARTIFACT_FILENAME:?}" != "$${NEW_ARTIFACT_FILENAME:?}" ]]; then | ||
mv $${ARTIFACT_FILENAME:?} $${NEW_ARTIFACT_FILENAME:?} | ||
fi | ||
|
||
# From the Buildkite documentation: | ||
# > By default the agent will create objects with public-read permissions, so that | ||
# > clicking on an artifact link in the Buildkite web interface can go directly to the | ||
# > S3 object to be viewed in the browser. | ||
|
||
buildkite-agent artifact upload $${ARTIFACT_FILENAME:?} | ||
timeout_in_minutes: 60 | ||
|
||
# We must accept the signed job id secret in order to propagate secrets | ||
env: | ||
BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET: ${BUILDKITE_PLUGIN_CRYPTIC_BASE64_SIGNED_JOB_ID_SECRET?} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Salted__j� �iE�.����Z9���3r~G�Mւa�?��L,���^o�%���Z����8�2zX�h�p�J�j��7�� | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding this to
0_webui.yml
, which is somewhat disruptive, as you have seen, we should instead launch asigned_pipelines.yml
which serves as a launchpad for our signed pipelines, just like how we have alaunch_unsigned_builders.yml
. This minimizes the amount of changes to0_webui.yml
that we have to perform.When we do need to change
0_webui.yml
, what we should do is test it out with the experimental pipeline, then add all the files we need, let it sit onmaster
for a week, then add it to the0_webui.yml
file. This will give our changes a chance to propagate to most of the PRs that are being opened at the time.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is the idea that
0_webui.yml
(and the contents of the web UI) will look like this:And then the
.buildkite/pipelines/main/signed_pipelines.yml
file looks like this:Is this correct?