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

Don't cancel TF request when GHA Runner cancel the job :octocat: #212

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

jamacku
Copy link
Member

@jamacku jamacku commented Jul 25, 2024

Public GitHub Actions Runner has a limit of 6 hours for job execution time.

Job execution time - Each job in a workflow can run for up to 6
hours of execution time. If a job reaches this limit, the job is terminated and fails to complete.

https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits

Let's try to detect these instances and avoid canceling the TF requests to allow users to inspect the results later.

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 74.28571% with 18 lines in your changes missing coverage. Please review.

Project coverage is 90.27%. Comparing base (7376d37) to head (089fe94).

Files Patch % Lines
src/post.ts 74.35% 10 Missing ⚠️
src/main.ts 74.19% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
+ Coverage   85.68%   90.27%   +4.58%     
==========================================
  Files          10       10              
  Lines         503      545      +42     
  Branches       83       95      +12     
==========================================
+ Hits          431      492      +61     
+ Misses         70       52      -18     
+ Partials        2        1       -1     

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

@jamacku jamacku requested a review from phracek August 1, 2024 11:55
src/main.ts Show resolved Hide resolved
Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

Only One nit-pick from my side. Only add a comment.

Public GitHub Actions Runner has limit of 6 hours for job execution
time.

> **Job execution time** - Each job in a workflow can run for up to 6
hours of execution time. If a job reaches this limit, the job is
terminated and fails to complete.

https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits

Let's try to detect this instances and don't cancel the TF requests to
allow users to inspect the results later.
Copy link
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

Tanks LGTM

@jamacku jamacku merged commit 5405b03 into sclorg:main Aug 1, 2024
6 of 7 checks passed
@jamacku jamacku deleted the fix-cancel-issue branch August 1, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing farm job canceled before configured timeout
2 participants