Skip to content

Conversation

@Mossaka
Copy link
Member

@Mossaka Mossaka commented Dec 12, 2024

I noticed that our CI isn't caching the build artifacts and thus each build takes more than 20 minutes to build and test. This is an attempt to cache the successful build in GitHub.

This PR also reorganizes the GitHub Action files and renamed a bunch of symbols to keey a consistent style.

@Mossaka Mossaka changed the title .github/workflows/build: Update to use setup-rust-toolchain and cache key cI: Update to use setup-rust-toolchain and cache key Dec 12, 2024
@Mossaka Mossaka changed the title cI: Update to use setup-rust-toolchain and cache key ci: Update to use setup-rust-toolchain and cache key Dec 12, 2024
@Mossaka Mossaka changed the title ci: Update to use setup-rust-toolchain and cache key ci: Update caching mechanism and refactor the actions Dec 13, 2024
@Mossaka Mossaka force-pushed the mossaka/setup-rust branch from ae45b36 to 19eecaf Compare January 13, 2025 17:16
@jsturtevant
Copy link
Contributor

It looks like the build still takes 27+ mins?

@github-actions
ci / build / build (ubuntu-latest, x86_64) (pull_request) Successful in 27m

@Mossaka Mossaka closed this Jan 14, 2025
@Mossaka Mossaka reopened this Jan 14, 2025
1. Renamed workflows to follow a consistent naming convention (`action-*`)
2. Extracted reusable workflows

Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
@Mossaka Mossaka force-pushed the mossaka/setup-rust branch from 19eecaf to febdfb1 Compare January 17, 2025 03:27
@Mossaka
Copy link
Member Author

Mossaka commented Jan 17, 2025

It looks like the build still takes 27+ mins?

@github-actions
ci / build / build (ubuntu-latest, x86_64) (pull_request) Successful in 27m

umm let me check what's going on. The previous run succeeded in 1m 41s: https://github.com/spinkube/containerd-shim-spin/actions/runs/12360411165/job/34497376173?pr=248

@Mossaka
Copy link
Member Author

Mossaka commented Jan 17, 2025

Okay I ru-ran the CI and this time the build finishes in 1m 44s: https://github.com/spinkube/containerd-shim-spin/actions/runs/12822111054/job/35754491970?pr=248

uses: ./.github/workflows/action-node-installer.yaml
needs: build
# This action requires use of the GITHUB_TOKEN to publish the image
# By default, PRs from forks don't have access, so we only run when the PR branch is on origin.
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this ran on the PR. Is that expected? From the comment it sounds like it shouldn't on forks?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh looks like your branch is on the upstream repo here...

Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

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

/lgtm

@Mossaka Mossaka merged commit 85f2982 into main Jan 17, 2025
8 checks passed
@Mossaka Mossaka deleted the mossaka/setup-rust branch January 17, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants