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

[ORCA-282] Adds "Keep Alive" CI Step #27

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

BWMac
Copy link
Contributor

@BWMac BWMac commented Oct 16, 2023

This PR introduces a CI step to prevent our scheduled workflow job from being paused due to the repository not being updated for >=60days. This step uses the Keep Alive Action. This Action will run each time our scheduled job does, and if it detects that this repo has not been updated for >=44 days it will push a dummy commit thus preventing our job from being paused after the 60-day limit is hit.

@swarmia
Copy link

swarmia bot commented Oct 16, 2023

@BWMac BWMac changed the title adds keep alive step [ORCA-282] Adds "Keep Alive" CI Step Oct 16, 2023
@@ -52,7 +52,11 @@ jobs:
name: python-distribution-files
path: dist/
retention-days: 1

# Prevent scheduled workflow from ever being paused
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting. Do we know what this action does to keep the workflow alive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It creates a dummy commit if the repo is >50 days stale when the scheduled job runs

Copy link
Contributor Author

@BWMac BWMac Oct 16, 2023

Choose a reason for hiding this comment

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

I'm updating it to do the dummy commit at 44 days instead. I realized that if 45-49 days had passed when a scheduled job ran it would not do the dummy commit before the 60-day limit.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e3ddde0) 100.00% compared to head (83e4adb) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #27   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines          874       874           
  Branches       138        99   -39     
=========================================
  Hits           874       874           

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

@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@BWMac BWMac marked this pull request as ready for review October 16, 2023 16:37
Copy link
Collaborator

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM!

@BWMac BWMac merged commit 2cdccde into main Oct 16, 2023
12 checks passed
@BWMac BWMac deleted the bwmac/ORCA-282/prevent-scheduled-action-pause branch October 16, 2023 17:37
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.

2 participants