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

Skip check for requirement.txt changes when using Pipenv #1350

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

edmorley
Copy link
Member

Previously Pipenv builds would include a stray error message in the log output, that didn't affect the result of the build, but added noise to the logs and gave the false impression the build was broken in some way:

cp: cannot stat '/tmp/build_a123c0456/requirements.txt': No such file or directory

This originated from the check of requirements.txt changes compared to the copy of the file seen in the last build. This check is only necessary when using Pip (and not Pipenv), so should always have been skipped.

Now that the check is fixed, the disabling of bash exit on error mode for part of bin/steps/python can more easily be removed, increasing coverage of such issues in the future.

Fixes #1270.
GUS-W-7924941.

@edmorley edmorley added the bug label Aug 15, 2022
@edmorley edmorley self-assigned this Aug 15, 2022
Previously Pipenv builds would include a stray error message in the
log output, that didn't affect the result of the build, but added noise
to the logs and gave the false impression the build was broken in
some way:

```
cp: cannot stat '/tmp/build_a123c0456/requirements.txt': No such file or directory
```

This originated from the check of `requirements.txt` changes compared
to the copy of the file seen in the last build. This check is only necessary
when using Pip (and not Pipenv), so should always have been skipped.

Now that the check is fixed, the disabling of bash exit on error mode for
part of `bin/steps/python` can more easily be removed, increasing
coverage of such issues in the future.

Fixes #1270.
GUS-W-7924941.
@edmorley edmorley force-pushed the fix-cp-cannot-stat-warning branch from db79830 to 1e04ed3 Compare August 15, 2022 18:57
@edmorley edmorley marked this pull request as ready for review August 15, 2022 19:01
@edmorley edmorley requested a review from a team as a code owner August 15, 2022 19:01
@edmorley edmorley merged commit 29078ba into main Aug 15, 2022
@edmorley edmorley deleted the fix-cp-cannot-stat-warning branch August 15, 2022 21:10
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.

Should I have requirements.txt when using pipenv?
2 participants