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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(optic): don't loop forever when running from / #2751

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

notnmeyer
Copy link
Member

@notnmeyer notnmeyer commented Feb 26, 2024

馃崡 Description

What does this PR do? Anything folks should know?

i noticed what i thought was an issue with our docker image, where any invocation of optic would hang without output and require a kill -9 to stop. after some stracing and validating where it first sprung up i narrowed it down to the seemingly innocuous way we walk the file tree to find a config.

when $PWD is / the walk enters an infinite loop. this most noticeable in the image because we leave its WORKDIR set at the root, /. you can however replicate this on macOS as well with,

cd / && optic --version

just be ready to grab the pid so you can kill it :)

馃摎 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

馃懝 QA

How can other humans verify that this PR is correct?

@notnmeyer notnmeyer self-assigned this Feb 26, 2024
@notnmeyer notnmeyer changed the title fix: don fix(optic): don't loop forever when running from / Feb 26, 2024
@notnmeyer notnmeyer changed the title fix(optic): don't loop forever when running from / fix(optic): don't loop forever when running from / Feb 26, 2024
@notnmeyer notnmeyer marked this pull request as ready for review February 26, 2024 21:07
@notnmeyer notnmeyer added this pull request to the merge queue Feb 26, 2024
Merged via the queue into main with commit b978486 Feb 26, 2024
3 checks passed
@notnmeyer notnmeyer deleted the fix/config-file-walk branch February 26, 2024 21:47
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.

None yet

2 participants