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

[Merged by Bors] - Upload go-sm release builds to R2 #6225

Closed
wants to merge 5 commits into from

Conversation

andres-spacemesh
Copy link
Contributor

Motivation

Upgrade the release process with R2 uploads to reduce costs and safeguarding against network charges and abuse, while keeping the GCP bucket as a temporary backup.

Description

Introduces a release upload to R2 while maintaining GCP as a backup. This step is part of a larger migration plan that will eventually see the full transition to R2, including the smapp builds.

Test Plan

Test the upload to the GCS Bucket

Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.1%. Comparing base (00d476f) to head (747f334).
Report is 32 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #6225    +/-   ##
========================================
  Coverage     82.0%   82.1%            
========================================
  Files          308     307     -1     
  Lines        33913   34105   +192     
========================================
+ Hits         27829   28012   +183     
- Misses        4311    4317     +6     
- Partials      1773    1776     +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

.github/workflows/release.yml Outdated Show resolved Hide resolved
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_GO_SM_BUILDS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_GO_SM_BUILDS_SECRET_ACCESS_KEY }}
SOURCE_DIR: build-zip
DEST_DIR: '${{ github.ref_name }}'
Copy link
Member

Choose a reason for hiding this comment

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

NIT: the apostrophes aren't needed 🙂

Suggested change
DEST_DIR: '${{ github.ref_name }}'
DEST_DIR: ${{ github.ref_name }}

Copy link
Member

@fasmat fasmat left a comment

Choose a reason for hiding this comment

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

I don't think we need the jakejarvis/s3-sync-action, it's unmaintained for a few years and doing it ourselves is near trivial (see comments).

.github/workflows/release.yml Outdated Show resolved Hide resolved
Copy link
Member

@fasmat fasmat left a comment

Choose a reason for hiding this comment

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

Created a test release to see if the new links work: https://github.com/spacemeshos/go-spacemesh/releases/tag/v1.7.0-citest.0-nomain

seems to be working OK

@fasmat
Copy link
Member

fasmat commented Aug 16, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 16, 2024
## Motivation

Upgrade the release process with R2 uploads to reduce costs and safeguarding against network charges and abuse, while keeping the GCP bucket as a temporary backup.



Co-authored-by: Matthias <[email protected]>
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Upload go-sm release builds to R2 [Merged by Bors] - Upload go-sm release builds to R2 Aug 16, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 16, 2024
@spacemesh-bors spacemesh-bors bot deleted the upload-go-sm-releases-to-r2 branch August 16, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants