Skip to content

fix(docker): python bytecode compilation#773

Merged
AtomicFS merged 1 commit intomainfrom
fix/uboot-docker
Oct 21, 2025
Merged

fix(docker): python bytecode compilation#773
AtomicFS merged 1 commit intomainfrom
fix/uboot-docker

Conversation

@AtomicFS
Copy link
Copy Markdown
Collaborator

  • we were seeing some issues when building the uboot containers with bytecode compilation, especially on Ubuntu Noble
  • apparently this is common problem
  • there are multiple possible workarounds, but I opted for skipping the automatic bytecode compilation and invoking it manually

@github-actions github-actions bot added docker docker related bugfix Bugfix / fix labels Oct 20, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 20, 2025

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 15 0 0 0.41s
✅ BASH bash-exec 10 0 0 0.02s
✅ BASH shellcheck 9 0 0 0.08s
✅ BASH shfmt 9 0 0 0.0s
✅ DOCKERFILE hadolint 5 0 0 0.22s
✅ EDITORCONFIG editorconfig-checker 227 0 0 2.34s
✅ GO revive 31 0 0 29.92s
✅ JSON jsonlint 14 0 0 0.96s
✅ JSON prettier 14 0 0 1.84s
✅ JSON v8r 14 0 0 14.99s
✅ MARKDOWN markdownlint 32 0 0 5.2s
✅ PYTHON black 20 0 0 1.37s
✅ PYTHON flake8 20 0 0 0.74s
✅ PYTHON isort 20 0 0 0.25s
✅ PYTHON mypy 20 0 0 7.11s
✅ PYTHON pylint 20 0 0 8.68s
✅ PYTHON pyright 20 0 0 0.95s
✅ PYTHON ruff 20 0 0 0.03s
✅ REPOSITORY gitleaks yes no no 6.75s
✅ REPOSITORY git_diff yes no no 0.0s
✅ REPOSITORY grype yes no no 62.39s
✅ REPOSITORY secretlint yes no no 1.43s
✅ REPOSITORY syft yes no no 14.24s
✅ REPOSITORY trivy yes no no 10.6s
✅ REPOSITORY trivy-sbom yes no no 5.21s
✅ REPOSITORY trufflehog yes no no 6.69s
✅ SPELL cspell 227 0 0 3.82s
⚠️ YAML prettier 35 1 2 7.26s
✅ YAML v8r 35 0 0 22.25s
✅ YAML yamllint 35 0 0 4.38s

Detailed Issues

⚠️ YAML / prettier - 1 error
Checking formatting...
[warn] .github/workflows/go-test.yml
[warn] Code style issues found in the above file. Run Prettier with --write to fix.

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.1.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_MYPY,PYTHON_PYRIGHT,PYTHON_RUFF,ACTION_ACTIONLINT,BASH_EXEC,BASH_SHELLCHECK,BASH_SHFMT,DOCKERFILE_HADOLINT,EDITORCONFIG_EDITORCONFIG_CHECKER,GO_REVIVE,JSON_JSONLINT,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_GRYPE,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_CSPELL,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security

@github-actions github-actions bot added github_actions Pull requests that update GitHub Actions code testing Testing related labels Oct 21, 2025
@AtomicFS AtomicFS marked this pull request as ready for review October 21, 2025 13:20
@AtomicFS AtomicFS requested a review from MDr164 as a code owner October 21, 2025 13:20
@AtomicFS AtomicFS enabled auto-merge October 21, 2025 13:20
- we were seeing some issues when building the uboot containers with
  bytecode compilation, especially on Ubuntu Noble
- apparently this is common and known problem
- there are multiple possible workarounds, one is to postpone the
  automatic bytecode compilation, but this is problematic because our
  containers are multi-arch (x86_64 and arm64)
- bump ubuntu to Plucky Puffin (25.04)
- also, added a step to fix the installation

Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
@AtomicFS AtomicFS disabled auto-merge October 21, 2025 13:49
@AtomicFS AtomicFS merged commit 14c0a5c into main Oct 21, 2025
40 of 62 checks passed
@AtomicFS AtomicFS deleted the fix/uboot-docker branch October 21, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bugfix / fix docker docker related github_actions Pull requests that update GitHub Actions code testing Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant