Skip to content

Commit 9b1243e

Browse files
committed
Revert "[anza migration] replace binaries backend (solana-labs#6)"
This reverts commit 9355518.
1 parent 6e01a07 commit 9b1243e

9 files changed

+37
-48
lines changed

.github/workflows/release-artifacts-auto.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ concurrency:
1414

1515
jobs:
1616
release-artifacts:
17-
if: github.repository == 'anza-xyz/agave'
17+
if: github.repository == 'solana-labs/solana'
1818
uses: ./.github/workflows/release-artifacts.yml
1919
with:
2020
commit: ${{ github.sha }}
2121
secrets:
22-
GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL: ${{ secrets.GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL }}
22+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
23+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
24+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
2325

2426
error_reporting:
2527
needs:

.github/workflows/release-artifacts-manually.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
with:
1515
commit: ${{ github.event.inputs.commit }}
1616
secrets:
17-
GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL: ${{ secrets.GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL }}
17+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
18+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}

.github/workflows/release-artifacts.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
required: false
88
type: string
99
secrets:
10-
GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL:
10+
AWS_ACCESS_KEY_ID:
11+
required: true
12+
AWS_SECRET_ACCESS_KEY:
13+
required: true
14+
AWS_S3_BUCKET:
1115
required: true
1216

1317
jobs:
@@ -58,17 +62,17 @@ jobs:
5862
shell: bash
5963
run: |
6064
FOLDER_NAME=${{ steps.build.outputs.tag || steps.build.outputs.channel }}
61-
mkdir -p "windows-release/$FOLDER_NAME"
62-
cp -v "solana-release-x86_64-pc-windows-msvc.tar.bz2" "windows-release/$FOLDER_NAME/"
63-
cp -v "solana-release-x86_64-pc-windows-msvc.yml" "windows-release/$FOLDER_NAME/"
64-
cp -v "solana-install-init-x86_64-pc-windows-msvc"* "windows-release/$FOLDER_NAME"
65+
mkdir -p "github-action-s3-upload/$FOLDER_NAME"
66+
cp -v "solana-release-x86_64-pc-windows-msvc.tar.bz2" "github-action-s3-upload/$FOLDER_NAME/"
67+
cp -v "solana-release-x86_64-pc-windows-msvc.yml" "github-action-s3-upload/$FOLDER_NAME/"
68+
cp -v "solana-install-init-x86_64-pc-windows-msvc"* "github-action-s3-upload/$FOLDER_NAME"
6569
6670
- name: Upload Artifacts
6771
if: ${{ steps.build.outputs.channel != '' || steps.build.outputs.tag != '' }}
6872
uses: actions/upload-artifact@v3
6973
with:
7074
name: windows-artifact
71-
path: windows-release/
75+
path: github-action-s3-upload/
7276

7377
windows-s3-upload:
7478
if: ${{ needs.windows-build.outputs.channel != '' || needs.windows-build.outputs.tag != '' }}
@@ -79,16 +83,7 @@ jobs:
7983
uses: actions/download-artifact@v3
8084
with:
8185
name: windows-artifact
82-
path: .windows-release/
83-
84-
- name: Setup crediential
85-
uses: "google-github-actions/auth@v2"
86-
with:
87-
credentials_json: "${{ secrets.GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL }}"
88-
89-
- name: Upload files to GCS
90-
run: |
91-
gcloud storage cp --recursive windows-release/* gs://anza-release/
86+
path: ./github-action-s3-upload
9287

9388
- name: Upload
9489
uses: jakejarvis/s3-sync-action@master
@@ -99,7 +94,7 @@ jobs:
9994
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
10095
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
10196
AWS_REGION: "us-west-1"
102-
SOURCE_DIR: "windows-release"
97+
SOURCE_DIR: "github-action-s3-upload"
10398

10499
windows-gh-release:
105100
if: ${{ needs.windows-build.outputs.tag != '' }}
@@ -110,12 +105,12 @@ jobs:
110105
uses: actions/download-artifact@v3
111106
with:
112107
name: windows-artifact
113-
path: .windows-release/
108+
path: ./github-action-s3-upload
114109

115110
- name: Release
116111
uses: softprops/action-gh-release@v1
117112
with:
118113
tag_name: ${{ needs.windows-build.outputs.tag }}
119114
draft: true
120115
files: |
121-
windows-release/${{ needs.windows-build.outputs.tag }}/*
116+
github-action-s3-upload/${{ needs.windows-build.outputs.tag }}/*

ci/publish-installer.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ fi
2626
# upload install script
2727
source ci/upload-ci-artifact.sh
2828

29-
cat >release.anza.xyz-install <<EOF
29+
cat >release.solana.com-install <<EOF
3030
SOLANA_RELEASE=$CHANNEL_OR_TAG
3131
SOLANA_INSTALL_INIT_ARGS=$CHANNEL_OR_TAG
32-
SOLANA_DOWNLOAD_ROOT=https://release.anza.xyz
32+
SOLANA_DOWNLOAD_ROOT=https://release.solana.com
3333
EOF
34-
cat install/solana-install-init.sh >>release.anza.xyz-install
34+
cat install/solana-install-init.sh >>release.solana.com-install
3535

36-
echo --- GCS: "install"
37-
upload-gcs-artifact "/solana/release.anza.xyz-install" "gs://anza-release/$CHANNEL_OR_TAG/install"
36+
echo --- AWS S3 Store: "install"
37+
upload-s3-artifact "/solana/release.solana.com-install" "s3://release.solana.com/$CHANNEL_OR_TAG/install"
3838
echo Published to:
39-
ci/format-url.sh https://release.anza.xyz/"$CHANNEL_OR_TAG"/install
39+
ci/format-url.sh https://release.solana.com/"$CHANNEL_OR_TAG"/install

ci/publish-tarball.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ for file in "${TARBALL_BASENAME}"-$TARGET.tar.bz2 "${TARBALL_BASENAME}"-$TARGET.
118118
fi
119119

120120
if [[ -n $BUILDKITE ]]; then
121-
echo --- GCS Store: "$file"
122-
upload-gcs-artifact "/solana/$file" gs://anza-release/"$CHANNEL_OR_TAG"/"$file"
121+
echo --- AWS S3 Store: "$file"
122+
upload-s3-artifact "/solana/$file" s3://release.solana.com/"$CHANNEL_OR_TAG"/"$file"
123123

124124
echo Published to:
125-
$DRYRUN ci/format-url.sh https://release.anza.xyz/"$CHANNEL_OR_TAG"/"$file"
125+
$DRYRUN ci/format-url.sh https://release.solana.com/"$CHANNEL_OR_TAG"/"$file"
126126

127127
if [[ -n $TAG ]]; then
128128
ci/upload-github-release-asset.sh "$file"

ci/upload-ci-artifact.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,3 @@ upload-s3-artifact() {
4040
docker run "${args[@]}"
4141
)
4242
}
43-
44-
upload-gcs-artifact() {
45-
echo "--- artifact: $1 to $2"
46-
docker run --rm \
47-
-v "$GCS_RELEASE_BUCKET_WRITER_CREDIENTIAL:/application_default_credentials.json" \
48-
-v "$PWD:/solana" \
49-
-e CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=/application_default_credentials.json \
50-
gcr.io/google.com/cloudsdktool/google-cloud-cli:latest \
51-
gcloud storage cp "$1" "$2"
52-
}

ci/upload-github-release-asset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
# Force CI_REPO_SLUG since sometimes
2727
# BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG is not set correctly, causing the
2828
# artifact upload to fail
29-
CI_REPO_SLUG=anza-xyz/agave
29+
CI_REPO_SLUG=solana-labs/solana
3030
#if [[ -z $CI_REPO_SLUG ]]; then
3131
# echo Error: CI_REPO_SLUG not defined
3232
# exit 1

install/solana-install-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
{ # this ensures the entire script is downloaded #
1717

1818
if [ -z "$SOLANA_DOWNLOAD_ROOT" ]; then
19-
SOLANA_DOWNLOAD_ROOT="https://github.com/anza-xyz/agave/releases/download/"
19+
SOLANA_DOWNLOAD_ROOT="https://github.com/solana-labs/solana/releases/download/"
2020
fi
21-
GH_LATEST_RELEASE="https://api.github.com/repos/anza-xyz/agave/releases/latest"
21+
GH_LATEST_RELEASE="https://api.github.com/repos/solana-labs/solana/releases/latest"
2222

2323
set -e
2424

install/src/command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,23 +572,23 @@ pub fn init(
572572

573573
fn github_release_download_url(release_semver: &str) -> String {
574574
format!(
575-
"https://github.com/anza-xyz/agave/releases/download/v{}/solana-release-{}.tar.bz2",
575+
"https://github.com/solana-labs/solana/releases/download/v{}/solana-release-{}.tar.bz2",
576576
release_semver,
577577
crate::build_env::TARGET
578578
)
579579
}
580580

581581
fn release_channel_download_url(release_channel: &str) -> String {
582582
format!(
583-
"https://release.anza.xyz/{}/solana-release-{}.tar.bz2",
583+
"https://release.solana.com/{}/solana-release-{}.tar.bz2",
584584
release_channel,
585585
crate::build_env::TARGET
586586
)
587587
}
588588

589589
fn release_channel_version_url(release_channel: &str) -> String {
590590
format!(
591-
"https://release.anza.xyz/{}/solana-release-{}.yml",
591+
"https://release.solana.com/{}/solana-release-{}.yml",
592592
release_channel,
593593
crate::build_env::TARGET
594594
)
@@ -905,7 +905,7 @@ fn check_for_newer_github_release(
905905

906906
while page == 1 || releases.len() == PER_PAGE {
907907
let url = reqwest::Url::parse_with_params(
908-
"https://api.github.com/repos/anza-xyz/agave/releases",
908+
"https://api.github.com/repos/solana-labs/solana/releases",
909909
&[
910910
("per_page", &format!("{PER_PAGE}")),
911911
("page", &format!("{page}")),

0 commit comments

Comments
 (0)