Skip to content

Bullet proof runner termination - #689

Merged
DavidGOrtega merged 31 commits into
masterfrom
bullet-proof-runner-termination
Mar 10, 2022
Merged

DavidGOrtega merged 31 commits into
masterfrom
bullet-proof-runner-termination

Conversation

@DavidGOrtega

@DavidGOrtega DavidGOrtega commented Aug 10, 2021 •

Copy link
Copy Markdown
Contributor

In GH sometimes the log for a new job or job termination does not fails ending up in two scenarios:

  • a runner that runs forever because it believes that it has a job in the pipeline
  • a runner that terminates prematurely because it does not detect the new job

This attempt

@DavidGOrtega
DavidGOrtega temporarily deployed to internal August 10, 2021 17:12 Inactive
@DavidGOrtega
DavidGOrtega marked this pull request as draft August 10, 2021 17:12
@DavidGOrtega
DavidGOrtega force-pushed the bullet-proof-runner-termination branch from fc29f45 to 1b3d538 Compare August 10, 2021 17:30
@DavidGOrtega
DavidGOrtega temporarily deployed to internal August 10, 2021 17:30 Inactive
@DavidGOrtega
DavidGOrtega force-pushed the bullet-proof-runner-termination branch from 1b3d538 to f98716d Compare August 10, 2021 17:31
@DavidGOrtega
DavidGOrtega temporarily deployed to internal August 10, 2021 17:31 Inactive
@casperdcl casperdcl added the bug Something isn't working label Aug 10, 2021
@0x2b3bfa0 0x2b3bfa0 mentioned this pull request Aug 31, 2021
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 17, 2021 13:54 Inactive
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 17, 2021 18:21 Inactive
@0x2b3bfa0
0x2b3bfa0 force-pushed the bullet-proof-runner-termination branch from 9bdf4a8 to 2533c64 Compare September 17, 2021 18:40
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 17, 2021 18:40 Inactive
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 17, 2021 18:42 Inactive
@0x2b3bfa0

0x2b3bfa0 commented Sep 17, 2021 •

Copy link
Copy Markdown
Member

Manually merged the main branch into this to resolve the conflicts introduced with #703, courtesy of the Weekly Release Manager™

@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 22, 2021 10:30 Inactive
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 24, 2021 13:39 Inactive
@casperdcl casperdcl linked an issue Dec 7, 2021 that may be closed by this pull request
@ivyleavedtoadflax

Copy link
Copy Markdown

Hi! Any news on if/when this will get merged? 🙏

@casperdcl

Copy link
Copy Markdown
Contributor

Hopefully within a month :)

@DavidGOrtega

Copy link
Copy Markdown
Contributor Author

Hi! Any news on if/when this will get merged? 🙏

Hi @ivyleavedtoadflax the reason why has not been merged yet is because we already merged two PR that should have fixed any GCP issue.
I will come back to review this this week as I know that you are affected in GCP

@0x2b3bfa0 0x2b3bfa0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See #689 (comment) and subsequent comments.

Comment thread src/cml.test.js Resolved
Comment thread bin/cml/runner.js Resolved
Comment thread package.json Resolved
Comment thread src/cml.js Resolved
@DavidGOrtega
DavidGOrtega temporarily deployed to internal March 8, 2022 17:30 Inactive
@DavidGOrtega
DavidGOrtega temporarily deployed to internal March 8, 2022 19:31 Inactive
Comment thread bin/cml/runner.js Resolved
Comment thread bin/cml/runner.js Resolved
Comment thread bin/cml/runner.js Resolved
@DavidGOrtega
DavidGOrtega temporarily deployed to internal March 8, 2022 22:54 Inactive
@DavidGOrtega

Copy link
Copy Markdown
Contributor Author

@casperdcl @0x2b3bfa0 fixed your points 🙏

@0x2b3bfa0

0x2b3bfa0 commented Mar 9, 2022 •

Copy link
Copy Markdown
Member

@DavidGOrtega, did you finally find #689 (comment) useful?

Comment thread bin/cml/runner.js Resolved
@DavidGOrtega

Copy link
Copy Markdown
Contributor Author

@DavidGOrtega, did you finally find #689 (comment) useful?

Indeed I added the error despite is not there... using templating instead of adding... not sure why is not present...

@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal March 9, 2022 22:02 Inactive
Comment thread bin/cml/runner.js Resolved
@DavidGOrtega
DavidGOrtega temporarily deployed to internal March 9, 2022 22:09 Inactive

@0x2b3bfa0 0x2b3bfa0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As stated, testing manually all the edge cases covered in this pull request exceeds my current capacity. I have reviewed it statically and looks good, though. :shipit:

@DavidGOrtega
DavidGOrtega merged commit 5e9ad81 into master Mar 10, 2022
@DavidGOrtega
DavidGOrtega deleted the bullet-proof-runner-termination branch March 10, 2022 08:36
@casperdcl casperdcl mentioned this pull request Mar 16, 2022

This branch was previously deployed

1 inactive deployment
internal — 205a9d6c Deployed Mar 9, 2022 by DavidGOrtega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cml-runner Subcommand p0-critical Max priority (ASAP)

Projects

None yet

5 participants