Skip to content

fix(controller): handle nil processedTmpl in DAGs#13548

Merged
Joibel merged 1 commit into
argoproj:mainfrom
chengjoey:fix/controller-panic
Sep 18, 2024
Merged

fix(controller): handle nil processedTmpl in DAGs#13548
Joibel merged 1 commit into
argoproj:mainfrom
chengjoey:fix/controller-panic

Conversation

@chengjoey

Copy link
Copy Markdown
Member

Fixes #13547

Motivation

It seems more reasonable to judge processedTmpl != nil

@chengjoey
chengjoey force-pushed the fix/controller-panic branch from eb9db41 to daae9f2 Compare September 2, 2024 09:05
Comment thread workflow/controller/dag.go
@Joibel Joibel self-assigned this Sep 2, 2024
Signed-off-by: joey <zchengjoey@gmail.com>
@chengjoey
chengjoey force-pushed the fix/controller-panic branch from daae9f2 to d7da631 Compare September 2, 2024 09:41
Comment thread workflow/controller/dag.go

@Joibel Joibel left a comment

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.

As you have a reproducible test case, could you add it as a regression test please?

@chengjoey

chengjoey commented Sep 2, 2024

Copy link
Copy Markdown
Member Author

@Joibel , I accidentally reproduced it in #13547, but I can't reproduce it 100% now. It seems to be a one-time thing, so I'm not sure if I can add e2e tests

@terrytangyuan terrytangyuan left a comment

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.

I think this is a great fix for edge cases even though it cannot be reproduced easily. WDYT? @Joibel

@Joibel
Joibel merged commit 5b8ae35 into argoproj:main Sep 18, 2024
@Joibel

Joibel commented Sep 18, 2024

Copy link
Copy Markdown
Member

@chengjoey Thanks for this

Joibel pushed a commit to pipekit/argo-workflows that referenced this pull request Sep 19, 2024
Signed-off-by: joey <zchengjoey@gmail.com>
Joibel pushed a commit that referenced this pull request Sep 20, 2024
Signed-off-by: joey <zchengjoey@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/controller Controller issues, panics area/templates/dag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

controller panic: nil pointer dereference on DAG processedTmpl

4 participants