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

Feature/vars expanding into parameters #85

Closed
wants to merge 7 commits into from

Conversation

rihter007
Copy link
Contributor

@rihter007 rihter007 commented Jun 21, 2022

Implementation of #25
Added variables plugin that can create variables from parameters
Added e2e test

@rihter007 rihter007 changed the base branch from main to poc/steps_variables June 21, 2022 21:25
@rihter007 rihter007 force-pushed the feature/vars_expanding_into_parameters branch from 48979ca to 35fc6f2 Compare June 21, 2022 21:25
@rihter007
Copy link
Contributor Author

Hm, due to merging conflicts the PR looks bulky.

@rihter007 rihter007 changed the base branch from poc/steps_variables to main June 21, 2022 21:28
@rihter007 rihter007 changed the base branch from main to poc/steps_variables June 21, 2022 21:31
@rihter007 rihter007 changed the base branch from poc/steps_variables to main June 21, 2022 21:32
@rihter007 rihter007 force-pushed the feature/vars_expanding_into_parameters branch from 78a704b to 0380b8a Compare June 21, 2022 21:32
import (
"encoding/json"
"fmt"
"github.com/linuxboot/contest/pkg/event/testevent"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nit

Imports should be grouped: standard, project, external

@xaionaro
Copy link
Member

Can we review this after merging the previous PR?

Add unit tests for CheckVariableName
Code-style improvements based on PR's comments

Signed-off-by: Ilya <[email protected]>
@rihter007 rihter007 force-pushed the feature/vars_expanding_into_parameters branch from 0380b8a to 8a56dea Compare June 27, 2022 11:48
@rihter007 rihter007 changed the base branch from main to poc/steps_variables June 27, 2022 11:49
@rihter007 rihter007 force-pushed the feature/vars_expanding_into_parameters branch 2 times, most recently from f2e47dd to 00915fa Compare June 27, 2022 12:58
Add check that variables refer to existing test steps

Signed-off-by: Ilya <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2022

Codecov Report

Merging #85 (00915fa) into poc/steps_variables (3187eb6) will increase coverage by 0.14%.
The diff coverage is 70.23%.

@@                   Coverage Diff                   @@
##           poc/steps_variables      #85      +/-   ##
=======================================================
+ Coverage                66.46%   66.61%   +0.14%     
=======================================================
  Files                      158      159       +1     
  Lines                     9724     9776      +52     
=======================================================
+ Hits                      6463     6512      +49     
+ Misses                    2563     2557       -6     
- Partials                   698      707       +9     
Flag Coverage Δ
e2e 50.50% <23.52%> (-0.24%) ⬇️
integration 57.58% <35.71%> (-0.01%) ⬇️
unittests 50.08% <63.38%> (+1.03%) ⬆️

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

Impacted Files Coverage Δ
pkg/test/step.go 84.61% <ø> (ø)
plugins/teststeps/echo/echo.go 8.00% <0.00%> (ø)
plugins/teststeps/sleep/sleep.go 73.46% <0.00%> (ø)
plugins/teststeps/sshcmd/sshcmd.go 1.20% <0.00%> (ø)
pkg/runner/test_steps_variables.go 64.04% <60.00%> (-0.25%) ⬇️
pkg/test/functions.go 78.94% <63.63%> (-6.24%) ⬇️
plugins/teststeps/variables/variables.go 76.00% <76.00%> (ø)
pkg/jobmanager/bundles.go 74.54% <100.00%> (+3.71%) ⬆️
pkg/pluginregistry/bundles.go 61.79% <100.00%> (+10.11%) ⬆️
pkg/test/param_expander.go 66.66% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3187eb6...00915fa. Read the comment docs.

@rihter007 rihter007 force-pushed the poc/steps_variables branch 3 times, most recently from 1306d17 to 979b7dd Compare July 20, 2022 18:39
@rihter007 rihter007 force-pushed the poc/steps_variables branch from 979b7dd to 9a8efb9 Compare August 7, 2022 15:37
@rihter007 rihter007 force-pushed the poc/steps_variables branch 2 times, most recently from 39a8f78 to 8196bfa Compare August 8, 2022 10:43
Base automatically changed from poc/steps_variables to main August 8, 2022 12:53
@rihter007
Copy link
Contributor Author

Is obsolete, will create a new PR

@rihter007 rihter007 closed this Aug 8, 2022
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