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

Continue even if Process.setpgrp fails #80

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

PChambino
Copy link
Contributor

In CircleCI, calling Process.setpgrp raises an "Operation not permitted" error,
but other than that flatware works.

In this proposed change, we allow flatware to continue when the error is raised. Resolves #66.

If flatware is executed with --log, then it will print:
INFO -- : flatware sink continuing after: Process.setpgrp: Operation not permitted

At Carwow, we have been running flatware on CircleCI for about 1 month (with a monkey-patched Process.setpgrp), on multiple large (5k+ tests) projects, and it works great! It allowed Carwow to reduce CircleCI credits by half, and also our Docker Hub pulls (which you have to pay if doing more than 5k/day).

Example CircleCI run (flatware running flatware tests):
https://app.circleci.com/pipelines/github/PChambino/flatware/18/workflows/9ae4f8b6-65c2-4ae7-af56-ece266bc69e1/jobs/33
(The relevant log line is the first line. The process fails, but the rspec report shows no failures. There is a log line about rspec-mocks, but it is unrelated to the change or CircleCI. This is just to demonstrate the setpgrp log.)

In CircleCI, calling Process.setpgrp raises an "Operation not permitted" error,
but other than that flatware works.

In this change, we allow flatware to continue when the error is raised.

If flatware is executed with --log, then it will print:
INFO -- : flatware sink continuing after: Process.setpgrp: Operation not permitted

At Carwow, we have been running flatware on CircleCI for about 1 month
(with a monkey-patched Process.setpgrp) and it works great!

It allowed Carwow to reduce CircleCI credits by half, and also our Docker Hub pulls.
@briandunn briandunn merged commit 811b7ba into briandunn:master Mar 2, 2024
48 checks passed
@PChambino PChambino deleted the try-setpgrp branch March 5, 2024 11:36
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.

Process.setpgrp fails in circleci
2 participants