Skip to content

test: Strengthen trust sidecar anchor assertion - #339

Merged
scouten-adobe merged 1 commit into
mainfrom
bump-c2pa-0.91.0
Sep 22, 2026
Merged

scouten-adobe merged 1 commit into
mainfrom
bump-c2pa-0.91.0

Conversation

@scouten-adobe

@scouten-adobe scouten-adobe commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Moves the non-version part of the earlier stable work onto main first.

This keeps main on its current c2pa-rs main dependency (0.92.0-dev in Cargo.lock) and does not pin c2pa to 0.91.0 here. The stable-only c2pa 0.91.0 pin can be handled by a backport/follow-up against the release line.

Change included here:

  • Strengthens the trust-sidecar unit test to assert that the normalized trust.anchors entry contains certificate material, not merely that an anchor entry exists.

Validation:

  • cargo test --bins --locked

Co-authored-by: Copilot App [email protected]

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.32%. Comparing base (e786f47) to head (f316b90).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   72.16%   72.32%   +0.15%     
==========================================
  Files           4        4              
  Lines        1060     1066       +6     
==========================================
+ Hits          765      771       +6     
  Misses        295      295              

☔ 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.

@scouten-adobe scouten-adobe changed the title chore: Bump c2pa dependency to 0.91.0 test: Strengthen trust sidecar anchor assertion Sep 22, 2026
@scouten-adobe
scouten-adobe changed the base branch from stable to main September 22, 2026 02:48
Keep the standalone fixture path and assert that the normalized trust anchor
content contains a certificate, rather than only checking that at least one
anchor was loaded.

Co-authored-by: Copilot App <[email protected]>
@scouten-adobe scouten-adobe added the backport-stable Cherry-pick this merged main PR onto the stable release line label Sep 22, 2026
@scouten-adobe
scouten-adobe merged commit f8778d6 into main Sep 22, 2026
18 checks passed
@scouten-adobe
scouten-adobe deleted the bump-c2pa-0.91.0 branch September 22, 2026 03:54
@caiopensrc

caiopensrc commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Backport-action failed to backport this pull request in workflow run 35684870187.

Target Status
stable ❌ Failed
❌ stable — unable to cherry-pick

Tried to cherry-pick commits onto stable, but the cherry-pick failed.

Please cherry-pick the changes locally and resolve any conflicts:

git fetch origin stable
git worktree add -d .worktree/backport-339-to-stable origin/stable
cd .worktree/backport-339-to-stable
git switch --create backport-339-to-stable
git cherry-pick -x f8778d649d56d43331adcdca2c77f0f779d0bc53

scouten-adobe added a commit that referenced this pull request Sep 22, 2026
* test: Backport trust sidecar fixture path fix

Backports the stable-compatible part of #339: the test fixture now uses the
standalone repository path instead of the old workspace path. The stronger
trust.anchors assertion from main depends on c2pa 0.91+, so stable keeps the
existing trust_anchors assertion until the release-line dependency bump lands.

(cherry picked from commit f316b90)

Co-authored-by: Copilot App <[email protected]>

* ci: Backport stable CI parity updates

Backport the current main Tier 1A workflow shape and PR title validation to
stable so release-line PRs run the same format, clippy, docs, lockfile,
WASI, audit, and cross-platform unit checks as main.

Add Cargo.lock to stable so the new locked-build check has a committed
lockfile to validate.

Co-authored-by: Copilot App <[email protected]>

* ci: Make stable WASI checks pass

Backport the target-conditional c2pa dependency split from main so stable's
new WASI job uses rust_native_crypto instead of the OpenSSL backend.

Also keep the stable-compatible trust fixture path fix in this CI prerequisite
PR and skip the atomic write replacement unit test on WASI, where
std::process::id is unsupported.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-stable Cherry-pick this merged main PR onto the stable release line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants