Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expand condition_script_runner_args #1132

Merged
merged 16 commits into from
Aug 18, 2024

Conversation

wmmc88
Copy link
Contributor

@wmmc88 wmmc88 commented Jul 31, 2024

#1081 added condition_script_runner_args, but condition_script_runner_args didn't expand env vars like script_runner_args did. This PR adds env expansion to condition_script_runner_args, and also adds tests for it.

Various bugfixes to tests were also fixed in order for cargo make ci-flow to pass on:

  1. windows computers
  2. environments that set CARGO_HOME

src/lib/runner.rs Outdated Show resolved Hide resolved
@sagiegurari
Copy link
Owner

@wmmc88 thanks for the PR! would love if you see my comment

README.md Outdated Show resolved Hide resolved
@wmmc88
Copy link
Contributor Author

wmmc88 commented Aug 5, 2024

@wmmc88 thanks for the PR! would love if you see my comment

@sagiegurari I've updated the PR so that there is no change in env when condition evaluation fails (and added a test to prevent possible future regressions)

@wmmc88
Copy link
Contributor Author

wmmc88 commented Aug 12, 2024

@sagiegurari friendly ping to review this :) the underlying bug is a blocker for me

@sagiegurari
Copy link
Owner

@wmmc88 sorry for the delay! i'll go over it today

Copy link
Owner

@sagiegurari sagiegurari left a comment

Choose a reason for hiding this comment

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

@wmmc88 everything looks pretty great just 2 main thinigs

  1. docs - the file is generated so your changes will be deleted. lets try not to do the nav changes you did but only the content. you can add nav, but not add a new root please.
  2. env setup before the condition and restoring it causes new env vars defined in the task to stick even if condition fails. we need to remove them.

README.md Outdated Show resolved Hide resolved
src/lib/runner.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 18, 2024

Codecov Report

Attention: Patch coverage is 19.78022% with 73 lines in your changes missing coverage. Please review.

Project coverage is 69.01%. Comparing base (6193a27) to head (092fea3).
Report is 18 commits behind head on master.

Files Patch % Lines
src/lib/runner_test.rs 0.00% 51 Missing ⚠️
src/lib/environment/mod_test.rs 0.00% 21 Missing ⚠️
src/lib/environment/mod.rs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1132       +/-   ##
===========================================
- Coverage   92.81%   69.01%   -23.80%     
===========================================
  Files         119      119               
  Lines       26224    26347      +123     
===========================================
- Hits        24339    18183     -6156     
- Misses       1885     8164     +6279     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wmmc88
Copy link
Contributor Author

wmmc88 commented Aug 18, 2024

@sagiegurari I think I've resolved all your requested changes

@sagiegurari sagiegurari self-assigned this Aug 18, 2024
@sagiegurari sagiegurari merged commit b639e7d into sagiegurari:master Aug 18, 2024
12 checks passed
@sagiegurari
Copy link
Owner

Thanks a lot @wmmc88 for the PR. merged.
I'll probably release a new version at end of week.
sorry it took so long.

@wmmc88 wmmc88 deleted the expand-condition-script-args branch August 18, 2024 15:08
@wmmc88
Copy link
Contributor Author

wmmc88 commented Aug 25, 2024

Thanks a lot @wmmc88 for the PR. merged. I'll probably release a new version at end of week. sorry it took so long.

Hi @sagiegurari! friendly bump for a release

@sagiegurari
Copy link
Owner

@wmmc88 sorry for really late handling of this but 0.37.16 is now released with this fix. thanks for the pr

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants