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

sys.exit removals from build.py #5402

Merged
merged 12 commits into from
Jul 12, 2024
Merged

Conversation

beeankha
Copy link
Member

@beeankha beeankha commented Jul 9, 2024

Description

Replacing sys.exit call inconda_build/build.py with the new CondaBuildUserError exception for better error handling, along with corresponding unit tests. Removed redundant code from post_process_files() function, which included a sys.exit call.

The changes in this PR are separated out from work previously done by @kenodegard in #5255
Xref #4209

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jul 9, 2024
Copy link

codspeed-hq bot commented Jul 9, 2024

CodSpeed Performance Report

Merging #5402 will not alter performance

Comparing beeankha:more-sys.exit-removals (1fe9686) with main (c4d5b22)

Summary

✅ 3 untouched benchmarks

@beeankha beeankha changed the title sys.exit removals from features.py, build.py sys.exit removals from features.py, build.py, and cli/main_build.py Jul 11, 2024
@beeankha beeankha marked this pull request as ready for review July 11, 2024 15:30
@beeankha beeankha requested a review from a team as a code owner July 11, 2024 15:30
Copy link
Contributor

@kenodegard kenodegard left a comment

Choose a reason for hiding this comment

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

We need to add tests checking for these exceptions being raised

beckermr
beckermr previously approved these changes Jul 11, 2024
@beeankha beeankha changed the title sys.exit removals from features.py, build.py, and cli/main_build.py sys.exit removals from build.py Jul 11, 2024
conda_build/build.py Outdated Show resolved Hide resolved
beeankha added a commit to beeankha/conda-build that referenced this pull request Jul 11, 2024
beeankha added a commit to beeankha/conda-build that referenced this pull request Jul 11, 2024
@beeankha beeankha enabled auto-merge (squash) July 12, 2024 16:20
@beeankha beeankha merged commit 2a0bf93 into conda:main Jul 12, 2024
28 checks passed
beeankha added a commit that referenced this pull request Jul 15, 2024
* Remove remaining sys.exit calls from build.py

* Remove sys.exit call from features.py

* Revert cleanup changes in build.py

* Remove sys.exit calls from main_build.py, update tests

* Revert changes to  in order to keep the PR small in scope

* Revert changes to  in order to keep the PR small in scope

* Add test for build.py, deprecate  constant

* Delete exception which will never get raised

* Remove deprecated code slated for removal in 24.7.x

* Revert changes from PR 5402

* Add news file

* Remove test_build.py test from #5402

* Remove more changes ported over from #5402

* Delete tests for 'conda build --test recipe/'

* Undo removal of '_construct_metadata_for_test_from_recipe()' and related tests, delay removal to 24.9.x release

* Update news file
@beeankha beeankha mentioned this pull request Jul 16, 2024
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants