Skip to content

fix(awn): use PROTOCOL_VERSION in tests, fix release-cli trigger#160

Merged
Jing-yilin merged 1 commit into
mainfrom
fix/cli-release-tests
Mar 24, 2026
Merged

fix(awn): use PROTOCOL_VERSION in tests, fix release-cli trigger#160
Jing-yilin merged 1 commit into
mainfrom
fix/cli-release-tests

Conversation

@Jing-yilin
Copy link
Copy Markdown
Contributor

Fixes the CI failure from https://github.com/ReScienceLab/agent-world-network/actions/runs/23486244809

Changes

Rust test fixes

  • test_domain_separator_values: replaced hardcoded "1.3" with PROTOCOL_VERSION constant so the test survives version bumps
  • test_compat_sign_verify_matches_ts: replaced hardcoded signature string with sign-then-verify roundtrip (signature includes version in domain separator, so cannot be a static string)

Release CLI workflow fix

  • Added resolve-tag job to release-cli.yml that resolves the tag from either the release event or the latest release (for workflow_dispatch)
  • Removed if: github.event_name == 'release' guards on upload/homebrew jobs so workflow_dispatch works end-to-end
  • Added explicit gh workflow run release-cli.yml step in release.yml after publish, since GITHUB_TOKEN-created releases don't trigger release: [published] events

Testing

  • 44/44 Rust tests pass
  • 218/218 TS tests pass

- Replace hardcoded '1.3' in crypto tests with PROTOCOL_VERSION constant
- Replace hardcoded signature assertion with sign-then-verify roundtrip
- Add resolve-tag job to release-cli.yml so workflow_dispatch works
- Have release.yml dispatch release-cli.yml after publish (GITHUB_TOKEN
  releases don't trigger release events)
@Jing-yilin Jing-yilin merged commit 79ce791 into main Mar 24, 2026
4 checks passed
@Jing-yilin Jing-yilin deleted the fix/cli-release-tests branch March 24, 2026 11:14
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