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

Fix traceback when git is not installed #2818

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

MetRonnie
Copy link
Contributor

Closes #2809 - fixes rose app-run and rose task-run crashing if git is not installed

@MetRonnie MetRonnie added the bug label Oct 22, 2024
@MetRonnie MetRonnie added this to the 2.3.2 milestone Oct 22, 2024
@MetRonnie MetRonnie self-assigned this Oct 22, 2024
@MetRonnie
Copy link
Contributor Author

  • Python 3.7 test is timing out which seems to happen flakily, not unique to this branch
  • MacOS test is failing on 8.3.x

Copy link
Contributor

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

  • Code checks out
  • Manually tested sudo mv /usr/bin/git . 🤮

@MetRonnie
Copy link
Contributor Author

Do you think it needs a 2nd reviewer?

@wxtim
Copy link
Contributor

wxtim commented Oct 24, 2024

Do you think it needs a 2nd reviewer?

Borderline, but I think it does on balance.

@@ -268,7 +268,7 @@ def run_bg(self, *args, **kwargs):
except OSError as exc:
if exc.filename is None and args:
exc.filename = args[0]
raise RosePopenError(args, 1, "", str(exc))
raise RosePopenError(args, exc.errno, "", str(exc)) from None
Copy link
Member

Choose a reason for hiding this comment

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

Python's errnos are between 1 and 132, so this should be fine.

@oliver-sanders
Copy link
Member

(poked tests)

@MetRonnie
Copy link
Contributor Author

MetRonnie commented Oct 24, 2024

Hmm, the Python 3.7 tests seem to be consistently hanging 😢 But not for me locally with a fresh Python 3.7 environment

@oliver-sanders
Copy link
Member

Hmm, the Python 3.7 tests seem to be consistently hanging 😢 But not for me locally with a fresh Python 3.7 environment

It looks like that is also happening on master.

https://github.com/metomi/rose/actions/runs/11587156748

@oliver-sanders oliver-sanders merged commit 192b322 into metomi:2.3.x Oct 30, 2024
4 of 6 checks passed
@MetRonnie MetRonnie deleted the git branch October 30, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rose app-run fails if git is not installed
3 participants