Skip to content

feat(ci): add regression CI gate and WASM size enforcement (#424, #425) - #456

Merged
maugauwi-hash merged 1 commit into
ethos-protocol:mainfrom
mctituschristian:feat/ci-gates-424-425
Aug 31, 2026
Merged

feat(ci): add regression CI gate and WASM size enforcement (#424, #425)#456
maugauwi-hash merged 1 commit into
ethos-protocol:mainfrom
mctituschristian:feat/ci-gates-424-425

Conversation

@mctituschristian

Copy link
Copy Markdown

Issue #424 — Regression Test Suite CI Gate for Slice Failover

  • Add 8 regression tests to slice_failover_tests.rs covering previously fixed bugs: threshold=1 immediate activation, failure count after failover, multiple-backup priority order, revert-then-refail cycle, unknown slice count=0, failure with no backup, event emission counts, and unregistered config returning false
  • Annotate the 'Run tests' CI step as the required branch-protection check for regression_tests.rs and slice_failover_tests.rs
  • Document regression-test policy in docs/best-practices.md (when to add a regression test, naming conventions, CI gate, merge checklist)

Issue #425 — WASM Size Budget Enforcement in CI

  • Add 'Build WASM artifact' step: cargo build --target wasm32-unknown-unknown
  • Add 'Check WASM size budget' step: fails build when ttl_vault.wasm exceeds 512 KB hard limit; prints warning when between 460 KB and 512 KB
  • Update docs/wasm-size-budget.md to document both thresholds, enforcement policy, and example CI output for all three size states

Closes #424
Closes #425

…tocol#424, ethos-protocol#425)

Issue ethos-protocol#424 — Regression Test Suite CI Gate for Slice Failover
- Add 8 regression tests to slice_failover_tests.rs covering previously
  fixed bugs: threshold=1 immediate activation, failure count after failover,
  multiple-backup priority order, revert-then-refail cycle, unknown slice
  count=0, failure with no backup, event emission counts, and unregistered
  config returning false
- Annotate the 'Run tests' CI step as the required branch-protection check
  for regression_tests.rs and slice_failover_tests.rs
- Document regression-test policy in docs/best-practices.md (when to add a
  regression test, naming conventions, CI gate, merge checklist)

Issue ethos-protocol#425 — WASM Size Budget Enforcement in CI
- Add 'Build WASM artifact' step: cargo build --target wasm32-unknown-unknown
- Add 'Check WASM size budget' step: fails build when ttl_vault.wasm exceeds
  512 KB hard limit; prints warning when between 460 KB and 512 KB
- Update docs/wasm-size-budget.md to document both thresholds, enforcement
  policy, and example CI output for all three size states
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@mctituschristian Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@maugauwi-hash
maugauwi-hash merged commit 54aa136 into ethos-protocol:main Aug 31, 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.

Implement Wasm Size Budget Enforcement in CI Add Regression Test Suite CI Gate for Slice Failover

2 participants