Skip to content

Switch ldap-server build to hermetic mode#99

Open
lubomir wants to merge 1 commit into
mainfrom
overseer/95
Open

Switch ldap-server build to hermetic mode#99
lubomir wants to merge 1 commit into
mainfrom
overseer/95

Conversation

@lubomir

@lubomir lubomir commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🤖 This was posted automatically by an AI agent.

Switch the ldap-server container build to hermetic mode by replacing the fedora-minimal base image with python:3.12-slim and locking all pip dependencies with cryptographic hashes.

Changes

  • integration-tests/images/ldap-server/requirements.in – lists the two direct runtime dependencies (ldaptor, twisted).
  • integration-tests/images/ldap-server/requirements.txt – pip-compiled lock file with --hash= annotations for every package (direct and transitive). Regenerate with pip-compile --generate-hashes when dependencies change.
  • integration-tests/images/ldap-server/Containerfile – switches base image from registry.fedoraproject.org/fedora-minimal:44 to python:3.12-slim; removes the microdnf installation steps; installs dependencies via pip install --require-hashes -r requirements.txt.
  • .tekton/ldap-server-pull-request.yaml and .tekton/ldap-server-push.yaml – add hermetic: "true" and prefetch-input: pip to the top-level spec.params block, enabling Cachi2 pip prefetch and network-isolated builds without any structural pipeline changes.

@codecov-commenter

codecov-commenter commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.69%. Comparing base (1a12af6) to head (09b0b48).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #99   +/-   ##
=======================================
  Coverage   83.69%   83.69%           
=======================================
  Files          13       13           
  Lines        1325     1325           
=======================================
  Hits         1109     1109           
  Misses        216      216           
Flag Coverage Δ
unit-tests 83.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Replace the fedora-minimal base image with python:3.12-slim and lock all
pip dependencies for a network-isolated build.

- requirements.in: lists the two direct runtime dependencies (ldaptor, twisted)
- requirements.txt: pip-compiled lock file with hashes for all packages
- Containerfile: switches base image; installs via pip --require-hashes
- README.md: documents the dependency-update workflow
- .tekton/ldap-server-{pull-request,push}.yaml: enable hermetic mode with
  prefetch-input scoped to the ldap-server subdirectory

Generated-By: OpenCode (anthropic/claude-sonnet-4-6)
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