Skip to content

ci: support suite-aware extra repos#171

Open
simonbeaudoin0935 wants to merge 4 commits into
mainfrom
dev/sbeaudoi-suite-aware-extra-repositories
Open

ci: support suite-aware extra repos#171
simonbeaudoin0935 wants to merge 4 commits into
mainfrom
dev/sbeaudoi-suite-aware-extra-repositories

Conversation

@simonbeaudoin0935

@simonbeaudoin0935 simonbeaudoin0935 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Add support for package-repo-provided extra apt repositories during CI builds via an optional debian/extra-repositories.txt file.

Mechanism

build_package reads debian/extra-repositories.txt (if present) and forwards active entries to sbuild as --extra-repository.

Supported entry forms:

  • Global entry (applies to all suites):
    • deb ...
  • Suite-filtered entry:
    • [noble,questing,resolute] deb ...

Behavior:

  • Suite filters are exact matches against the build suite
  • unstable and sid are treated as equivalent for filter matching
  • Empty lines and comment lines are ignored
  • Active entries are de-duplicated
  • Malformed bracketed entries fail fast
  • Applies to all sbuild invocation paths in the action:
    • source/gbp path
    • prebuilt native path
    • prebuilt quilt path

Validation

Validated downstream with pkg-example using qcom-build-utils@development at commit fc9b2261e31f5e2cdb816e570698f96efb59d01f.

Workflow run:

Observed in logs:

  • Extra repository file detected and loaded
  • Loaded entry: deb [arch=arm64 trusted=yes] https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble main
  • Build-Depends included python3.7-dev
  • python3.7-dev and related packages were pulled from the configured PPA and build completed successfully

@simonbeaudoin0935 simonbeaudoin0935 force-pushed the dev/sbeaudoi-suite-aware-extra-repositories branch 2 times, most recently from 9087770 to e79d931 Compare June 17, 2026 17:37
@simonbeaudoin0935 simonbeaudoin0935 force-pushed the dev/sbeaudoi-suite-aware-extra-repositories branch from 74ddbe9 to d9233fc Compare June 22, 2026 22:01
Add debian/extra-repositories.txt parsing for build_package.
Support suite filters like [noble,questing] and suite placeholders.
Pass selected entries to all sbuild invocation paths.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Document debian/extra-repositories.txt in AGENTS.md.
Describe suite filters, wildcard support, and placeholders.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Keep only global entries and explicit suite-filtered entries
in debian/extra-repositories.txt.

Remove wildcard and placeholder handling.
Keep sid/unstable alias matching for suite filters.
Update docs to reflect the simplified contract.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Point DEBUSINE_ACTION_REF to dev/sbeaudoi-extra-repositories.

This enables pkg-example trixie validation for extra-repositories.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
@simonbeaudoin0935 simonbeaudoin0935 force-pushed the dev/sbeaudoi-suite-aware-extra-repositories branch from d9233fc to 4723748 Compare June 23, 2026 18:02
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.

1 participant