Skip to content

fix: normalize file modes in python image layer #8518

fix: normalize file modes in python image layer

fix: normalize file modes in python image layer #8518

Triggered via pull request September 2, 2026 16:53
Status Failure
Total duration 2m 50s
Artifacts

knative-style.yaml

on: pull_request
style  /  changes
5s
style / changes
style  /  ...  /  Auto-format and Check
31s
style / Golang / Auto-format and Check
style  /  ...  /  Lint
2m 39s
style / Golang / Lint
style  /  ...  /  Do Not Submit
5s
style / Golang / Do Not Submit
style  /  ...  /  shell
0s
style / suggester / shell
style  /  ...  /  yaml
0s
style / suggester / yaml
style  /  ...  /  github_actions
0s
style / suggester / github_actions
Matrix: style / Golang / Boilerplate Check
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
style / Golang / Auto-format and Check
Process completed with exit code 1.
style / Golang / Auto-format and Check: pkg/oci/builder_test.go#L0
Please run goimports. diff --git a/pkg/oci/builder_test.go b/pkg/oci/builder_test.go index da2a7e0..69d3e82 100644 --- a/pkg/oci/builder_test.go +++ b/pkg/oci/builder_test.go @@ -398,11 +398,11 @@ func TestNewDataTarball_NormalizesModes(t *testing.T) { } } - assertMode("/func", 0o755) // the project root must be traversable - assertMode("/func/sub", 0o755) // subdirs too + assertMode("/func", 0o755) // the project root must be traversable + assertMode("/func/sub", 0o755) // subdirs too assertMode("/func/func.yaml", 0o644) assertMode("/func/sub/mod.py", 0o644) - assertMode("/func/run.sh", 0o755) // executables keep the execute bit + assertMode("/func/run.sh", 0o755) // executables keep the execute bit } // TestBuilder_StaticEnvs ensures that certain "static" environment variables
style / Golang / Boilerplate Check (sh)
Restore cache failed: Dependencies file is not found in /home/runner/work/func/func. Supported file pattern: go.mod
style / Golang / Boilerplate Check (go)
Restore cache failed: Dependencies file is not found in /home/runner/work/func/func. Supported file pattern: go.mod
style / Golang / Auto-format and Check
Restore cache failed: Dependencies file is not found in /home/runner/work/func/func. Supported file pattern: go.mod
style / Golang / Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/func/func. Supported file pattern: go.mod