Skip to content

core: handle nil returns in various places#11420

Merged
sipsma merged 1 commit into
dagger:mainfrom
sipsma:container-dagop-panic
Nov 15, 2025
Merged

core: handle nil returns in various places#11420
sipsma merged 1 commit into
dagger:mainfrom
sipsma:container-dagop-panic

Conversation

@sipsma
Copy link
Copy Markdown
Contributor

@sipsma sipsma commented Nov 15, 2025

A user reported a panic from ContainerDagOp where it was hitting either a nil return from LoadType or a return that when unwrapped is nil.

I don't have a repro for that yet, so the code there is just an update to turn that into an error and include more debug information to help track it down if/when it happens again.

However while attempting repros of it I managed to hit independent panics involving modules returning various permutations of nil things in lists. Fixed those here and included integ test coverage.

A user reported a panic from ContainerDagOp where it was hitting either
a nil return from LoadType or a return that when unwrapped is nil.

I don't have a repro for that yet, so the code there is just an update
to turn that into an error and include more debug information to help
track it down if/when it happens again.

However while attempting repros of it I managed to hit independent
panics involving modules returning various permutations of nil things in
lists. Fixed those here and included integ test coverage.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
@sipsma sipsma added this to the v0.19.7 milestone Nov 15, 2025
@sipsma sipsma requested review from marcosnils and vito November 15, 2025 00:08
@sipsma sipsma merged commit 0cded03 into dagger:main Nov 15, 2025
45 checks passed
raykao pushed a commit to raykao/dagger that referenced this pull request Dec 9, 2025
A user reported a panic from ContainerDagOp where it was hitting either
a nil return from LoadType or a return that when unwrapped is nil.

I don't have a repro for that yet, so the code there is just an update
to turn that into an error and include more debug information to help
track it down if/when it happens again.

However while attempting repros of it I managed to hit independent
panics involving modules returning various permutations of nil things in
lists. Fixed those here and included integ test coverage.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
raykao pushed a commit to raykao/dagger that referenced this pull request Dec 14, 2025
A user reported a panic from ContainerDagOp where it was hitting either
a nil return from LoadType or a return that when unwrapped is nil.

I don't have a repro for that yet, so the code there is just an update
to turn that into an error and include more debug information to help
track it down if/when it happens again.

However while attempting repros of it I managed to hit independent
panics involving modules returning various permutations of nil things in
lists. Fixed those here and included integ test coverage.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
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.

2 participants