You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The base `python` template was designed with post-checkout jobs
(`kbuild`, `kunit`...) in mind and doesn't work too well with test or
post-processing jobs due to the following issues:
* it assumes we need the kernel source from the parent `checkout` node
* it doesn't provide a way to retrieve arbitrary artifacts from a node
or its parent
* the `_get_source()` function doesn't allow specifying an arbitrary
target folder to extract tarballs to
Ensure we only download/extract/cd to the kernel source if the current
node is a child to a `checkout` node, otherwise let the job definition
prepare its workspace as needed.
Also add a generic `_get_artifact_url()` for downloading arbitrary
artifacts and make the existing `_get_tarball_url()` use it to avoid
duplicating code.
Finally, add an optional `path` parameter to `_get_source()` so the job
can specify the destination folder if needed.
Signed-off-by: Arnaud Ferraris <[email protected]>
0 commit comments