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

fix(controller): Randomly expr expression fail to resolve #6410

Merged
merged 8 commits into from
Jul 27, 2021

Conversation

sarabala1979
Copy link
Member

Signed-off-by: Saravanan Balasubramanian sarabala1979@gmail.com
closes #6257
Checklist:

Tips:

  • Your PR needs to pass the required checks before it can be approved. If the check is not required (e.g. E2E tests) it does not need to pass
  • Sign-off your commits to pass the DCO check: git commit --signoff.
  • Run make pre-commit -B to fix codegen or lint problems.
  • Say how how you tested your changes. If you changed the UI, attach screenshots.

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@@ -139,7 +139,7 @@ const (
// GlobalVarWorkflowDuration is the current duration of this workflow
GlobalVarWorkflowDuration = "workflow.duration"
// GlobalVarWorkflowParameters is a JSON string containing all workflow parameters
GlobalVarWorkflowParameters = "workflow.parameters"
GlobalVarWorkflowParameters = "workflow.parameters.json"
Copy link
Member Author

Choose a reason for hiding this comment

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

Randomly bellows.Expand failed to expend all global variable workflow.parameters.xxx if workflow.parameters expended first. We should have a different name for workflow.parameters json format.

Copy link
Contributor

Choose a reason for hiding this comment

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

we should raise a bug with bellows?

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe not, I think it does not make sense - but can we make sure that this is not used - new in v3.1?

Copy link
Contributor

Choose a reason for hiding this comment

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

also - should work for fasttemplate

Copy link
Member Author

Choose a reason for hiding this comment

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

fasttemplate will just string replace. it will work. I can ask the community channel for this variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

if it is in v3.0, then changing it would be breaking change

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should exclude this from {{= templates. Users should not need it.

Copy link
Member Author

Choose a reason for hiding this comment

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

we can prevent to have {{= in when element. So this is the way when will have only govaluate format.

sarabala1979 and others added 2 commits July 22, 2021 23:14
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #6410 (8686bd1) into master (c4bdc21) will decrease coverage by 0.00%.
The diff coverage is 40.90%.

❗ Current head 8686bd1 differs from pull request most recent head 5005db4. Consider uploading reports for the commit 5005db4 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6410      +/-   ##
==========================================
- Coverage   48.77%   48.77%   -0.01%     
==========================================
  Files         253      253              
  Lines       18151    18186      +35     
==========================================
+ Hits         8854     8870      +16     
- Misses       8334     8347      +13     
- Partials      963      969       +6     
Impacted Files Coverage Δ
config/config.go 31.57% <ø> (ø)
config/node_events.go 100.00% <ø> (ø)
workflow/artifacts/gcs/gcs.go 8.51% <0.00%> (-0.64%) ⬇️
workflow/executor/emissary/emissary.go 0.00% <0.00%> (ø)
workflow/validate/validate.go 75.02% <33.33%> (-0.30%) ⬇️
cmd/argoexec/commands/emissary.go 50.35% <40.00%> (-1.09%) ⬇️
workflow/controller/operator.go 72.54% <87.50%> (+0.09%) ⬆️
cmd/argo/commands/get.go 58.89% <0.00%> (-0.88%) ⬇️
workflow/controller/controller.go 21.92% <0.00%> (+0.88%) ⬆️

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 c4bdc21...5005db4. Read the comment docs.

@alexec
Copy link
Contributor

alexec commented Jul 23, 2021

feat: Expose workflow.paramteres with JSON string of all params (#2341)

Date to 2020, so can't change name.

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@sarabala1979 sarabala1979 marked this pull request as ready for review July 26, 2021 16:37
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
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.

When condition randomly invalid
2 participants