TestBuildUserNamespaceValidateCapabilitiesAreV2: cleanup daemon storage#42995
Conversation
f31faa8 to
0bd0a90
Compare
00c5cc3 to
e9a62ac
Compare
https://pkg.go.dev/testing#T.Fatalf
https://pkg.go.dev/testing#T.FailNow
Though maybe we can use |
Oh! Looks like I was mistaken; I guess I followed the code path to the logger interface. In any case, it didn't solve the issue; currently just trying to disable code to see at what point it starts to fail. But it's a bit of a pain, because once it fails, the Jenkins agent can no longer be used (so I need to delete the agent before trying again😫) |
e9a62ac to
ce9819b
Compare
bb0d761 to
63cde01
Compare
The storage-driver directory caused Jenkins cleanup to fail. While at it, also removing other directories that we do not include in the "bundles" that are stored as Jenkins artifacts. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
63cde01 to
9244cc5
Compare
This should help with Jenkins failing to clean up the Workspace: - make sure "cleanup" is also called in the defer for all daemons. keeping the daemon's storage around prevented Jenkins from cleaning up. - close client connections and some readers (just to be sure) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
9244cc5 to
eea2758
Compare
|
OK; looks like this is working now; the culprit was the I updated the test-utility's |
|
This is green, with the exception of |
fixes #42974
testutil: daemon.Cleanup(): cleanup more directories
The storage-driver directory caused Jenkins cleanup to fail. While at it, also
removing other directories that we do not include in the "bundles" that are
stored as Jenkins artifacts.
TestBuildUserNamespaceValidateCapabilitiesAreV2: cleanup daemon storage
This should help with Jenkins failing to clean up the Workspace:
the daemon's storage around prevented Jenkins from cleaning up.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)