Skip to content

Fix/tolerate nil target in parameter expanding#123

Merged
rihter007 merged 1 commit intomainfrom
fix/tolerate_nil_target_in_parameter_expanding
Aug 10, 2022
Merged

Fix/tolerate nil target in parameter expanding#123
rihter007 merged 1 commit intomainfrom
fix/tolerate_nil_target_in_parameter_expanding

Conversation

@rihter007
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Ilya <rihter007@inbox.ru>
@rihter007 rihter007 force-pushed the fix/tolerate_nil_target_in_parameter_expanding branch from c975be7 to c9d4fc5 Compare August 9, 2022 13:49
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #123 (51d974d) into main (29d7b6d) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head 51d974d differs from pull request most recent head c9d4fc5. Consider uploading reports for the commit c9d4fc5 to get more accurate results

@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
- Coverage   63.92%   63.88%   -0.04%     
==========================================
  Files         164      164              
  Lines       10321    10321              
==========================================
- Hits         6598     6594       -4     
- Misses       3007     3011       +4     
  Partials      716      716              
Flag Coverage Δ
e2e 49.76% <100.00%> (ø)
integration 55.28% <100.00%> (-0.03%) ⬇️
unittests 49.50% <100.00%> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/test/parameter.go 84.61% <100.00%> (ø)
pkg/runner/step_state.go 91.83% <0.00%> (-2.05%) ⬇️
pkg/jobmanager/jobmanager.go 76.92% <0.00%> (-1.10%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@rihter007 rihter007 requested a review from mimir-d August 9, 2022 14:28
Comment thread pkg/test/parameter.go
}
funcs := getFuncMap()
if vars != nil {
if target != nil && vars != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

where did this come up?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I noticed that some plugins set target to nil when calling Expand and because step variables use it I decided to make code safe

@rihter007 rihter007 merged commit 2ba91cd into main Aug 10, 2022
@rihter007 rihter007 deleted the fix/tolerate_nil_target_in_parameter_expanding branch August 10, 2022 08:01
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.

3 participants