Skip to content

ci: fix the Postman contract and track the latest release automatically - #17

Open
roncodes wants to merge 2 commits into
mainfrom
ci/postman-contract-v0.7.53
Open

ci: fix the Postman contract and track the latest release automatically#17
roncodes wants to merge 2 commits into
mainfrom
ci/postman-contract-v0.7.53

Conversation

@roncodes

@roncodes roncodes commented Aug 7, 2026

Copy link
Copy Markdown
Member

Fixes the Postman contract CI now that the v0.7.53 images have published — and, after fleetbase/fleetbase#578 merged, without pinning a version at all.

jobs:
  contract:
    uses: fleetbase/fleetbase/.github/workflows/api-contract.yml@main
    with:
      collections: "Fleetbase Ledger API"
      build-from-source: false
    secrets: inherit

The reusable workflow now defaults fleetbase-ref to main and tests against fleetbase/fleetbase-api:latest, so each release is picked up automatically and there is no ref in this repo to remember to bump. The tradeoff of a floating tag is reproducibility, which the upstream run covers by recording the resolved image digest and build date in its job summary.

To reproduce an older result, pass both explicitly:

    with:
      fleetbase-ref: v0.7.53
      api-image: fleetbase/fleetbase-api:v0.7.53

That same upstream PR also made the run visible — collection output is no longer collapsed inside ::group::, the job summary carries a per-collection table of requests/assertions/failures, and full logs upload as a postman-results artifact.

🤖 Generated with Claude Code

The contract job pinned the reusable workflow to @dev-v0.7.53, a pre-release
branch. That branch is now merged (fleetbase/fleetbase#575) and v0.7.53 is
tagged, with fleetbase/fleetbase-api:v0.7.53 published to Docker Hub.

  - pins the reusable workflow to @v0.7.53 instead of the dev branch, so runs
    are reproducible rather than tracking a branch that can move or be deleted
  - passes fleetbase-ref: v0.7.53 explicitly. The reusable workflow still
    defaults that input to dev-v0.7.53, so without this the job would boot the
    stack from the pre-release branch while testing against the released image.
    Passing it makes the booted source and the published image the same commit.

Bump both refs together at each release.

Contract runs on this repo were previously failing before they reached Postman —
the installer step died building the console image, because console/package.json
and console/pnpm-lock.yaml were briefly out of sync on the release branch and
console/Dockerfile installs with --frozen-lockfile. That is fixed in v0.7.53.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3cb6149) to head (ced6a0d).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #17   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1247      1247           
===========================================
  Files             74        74           
  Lines           6979      6979           
===========================================
  Hits            6979      6979           
Flag Coverage Δ
backend 100.00% <ø> (ø)

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fleetbase/fleetbase#578 changed the reusable workflow to default fleetbase-ref
to main and to test against fleetbase/fleetbase-api:latest, so there is no
longer a per-release ref to bump here. Drops the explicit fleetbase-ref and
moves the workflow reference from @v0.7.53 to @main.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@roncodes roncodes changed the title ci: point the Postman contract at the v0.7.53 release ci: fix the Postman contract and track the latest release automatically Aug 8, 2026
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