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

CI improve nightly GHA workflow #761

Merged
merged 6 commits into from
Jan 4, 2024
Merged

CI improve nightly GHA workflow #761

merged 6 commits into from
Jan 4, 2024

Conversation

sergejparity
Copy link
Contributor

@sergejparity sergejparity commented Jan 4, 2024

This PR improves nightly workflow by moving Polkadot and Staking miner playground binaries builds into separate workflows and just reusing its artifacts.

  • Polkadot is rebuilt every day at 22:00

  • Staking miner playground once a month or when changes to its codebase is made.

  • Both can be triggered manually if needed

@sergejparity sergejparity requested review from niklasad1 and a team January 4, 2024 09:02
with:
name: staking-miner-playground-binary
path: ./staking-miner-playground/target/release/staking-miner-playground
retention-days: 8
Copy link
Member

Choose a reason for hiding this comment

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

I think you could increase retention-rate to something like 30 days because the staking-miner playground hasn't been changed for a long time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Let it be 31, and binary will be rebuild on 1st day of every month :)

branches:
- main
paths:
- 'staking-miner-playground/**'
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

awesome thanks

Let's create a follow-up PR to move the "nightly tests" to the CI instead, it shouldn't be that slow a few minutes.

@sergejparity
Copy link
Contributor Author

awesome thanks

Let's create a follow-up PR to move the "nightly tests" to the CI instead, it shouldn't be that slow a few minutes.

Yes. It's taking ~5 mins https://github.com/sergejparity/polkadot-staking-miner/actions/runs/7386921007

@niklasad1 niklasad1 merged commit c83354f into main Jan 4, 2024
11 checks passed
@niklasad1 niklasad1 deleted the sk-tuneup-nightly-gha branch January 4, 2024 11:16
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