Skip to content

pkg-build: bundle metadata.json inside debs.tar.gz for S3 upload - #227

Merged
Keerthi Gowda (keerthi-go) merged 1 commit into
mainfrom
feat/upload-s3-metadata-json
Aug 25, 2026
Merged

Keerthi Gowda (keerthi-go) merged 1 commit into
mainfrom
feat/upload-s3-metadata-json

Conversation

@keerthi-go

@keerthi-go Keerthi Gowda (keerthi-go) commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "Generate metadata.json" step in the Upload_to_S3 job of pkg-build-reusable-workflow.yml, writing build-area/metadata.json before the debs are staged.
  • Mirrors the exact JSON format produced by qualcomm-linux/debusine-action's lib/generate-sources-tar (source-package, version, suite fields via a python3 heredoc), so Ubuntu proposed-artifact consumers get the same metadata shape as the Debian/Debusine path.
  • metadata.json is bundled directly inside debs.tar.gz alongside the .deb files (rather than uploaded as a sibling file), so a single archive carries both the packages and their metadata.

Test plan

  • Validate workflow YAML parses (done locally via python3 -c "import yaml; yaml.safe_load(...)")
  • Triggered a real build on pkg-fastrpc@dev-axiom/ubuntu/resolute pointed at this branch, confirmed debs.tar.gz uploaded to qli-prd-lecore-gh-artifacts S3 bucket under qualcomm-linux/pkg/proposed/<run_id>-<run_attempt>/ contains metadata.json alongside the .deb files
  • Confirmed metadata.json content matches {"source-package": "fastrpc", "version": "1.0.2-2", "suite": "resolute"}

Generate metadata.json alongside the .deb files and include it in the
debs.tar.gz archive, mirroring the format used by debusine-action's
generate-sources-tar so Ubuntu proposed-artifact consumers get the
same source-package/version/suite metadata as the Debian/Debusine
path.

Signed-off-by: Keerthi Gowda <kbalehal@qti.qualcomm.com>
@keerthi-go
Keerthi Gowda (keerthi-go) force-pushed the feat/upload-s3-metadata-json branch 2 times, most recently from 49b999a to 4878fdb Compare August 25, 2026 22:11
@keerthi-go Keerthi Gowda (keerthi-go) changed the title pkg-build: generate metadata.json alongside debs.tar.gz for S3 upload pkg-build: bundle metadata.json inside debs.tar.gz for S3 upload Aug 25, 2026
@keerthi-go
Keerthi Gowda (keerthi-go) merged commit b157401 into main Aug 25, 2026
21 checks passed
@simonbeaudoin0935
Simon Beaudoin (simonbeaudoin0935) deleted the feat/upload-s3-metadata-json branch August 31, 2026 18:34
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