Skip to content

Fix: 4 issues (#439, #440, #441, #442) - #508

Merged
dultimateade merged 1 commit into
dultimateade:mainfrom
woodlonestar-lang:simple/439-440-441-442
Nov 25, 2026
Merged

dultimateade merged 1 commit into
dultimateade:mainfrom
woodlonestar-lang:simple/439-440-441-442

Conversation

@woodlonestar-lang

Copy link
Copy Markdown
Contributor

Closes #439
Closes #440
Closes #441
Closes #442

Issues

#439 [ci] changelog-check.yml does not verify CHANGELOG entries reference a valid issue number

Summary

.github/workflows/changelog-check.yml verifies that a CHANGELOG.md entry exists for each PR, but does not validate that the entry references a valid GitHub issue number. This allows entries like Fixed a bug with no traceability.

Expected Behaviour

Add a check that each CHANGELOG entry contains a reference in the format #NNN or closes #NNN and that the referenced issue exists in the repository.

References

  • .github/workflows/changelog-check.yml
  • docs/CHANGELOG_TEMPLATE.md

#440 [ci] benchmarks.yml workflow does not fail on regression - only uploads results

Summary

.github/workflows/benchmarks.yml runs the benchmark suite and uploads results, but does not compare against the benchmarks/baseline.json baseline to detect regressions. A PR that doubles the instruction count of a critical entrypoint will pass CI.

Expected Behaviour

Add a comparison step that reads benchmarks/baseline.json and fails the workflow if any entrypoint exceeds its threshold by more than 10%.

References

  • .github/workflows/benchmarks.yml
  • benchmarks/baseline.json
  • scripts/check_benchmarks.py

#441 [ci] No cargo audit step - dependency vulnerabilities go undetected

Summary

The CI pipeline does not run cargo audit to check for known vulnerabilities in workspace dependencies. The workspace uses soroban-sdk = 22.0.0 and ethnum = 1.5.3; any CVEs in the dependency tree will not be surfaced.

Expected Behaviour

Add a cargo audit step to ci.yml that fails the build on CRITICAL and HIGH severity advisories.

References

  • .github/workflows/ci.yml

#442 [ci] No clippy step in ci.yml - lint regressions accumulate silently

Summary

.github/workflows/ci.yml runs tests but does not run cargo clippy. Clippy catches a large class of correctness and style issues that are not caught by tests alone (e.g. unused variables in production paths, integer truncation, panic-prone patterns).

Expected Behaviour

Add cargo clippy --workspace --all-targets -- -D warnings as a required CI step.

References

  • .github/workflows/ci.yml

Summary

changelog-check.yml needs 'issues: read' permission added to query issue existence; use the PR base SHA already computed in the workflow to diff only added CHANGELOG lines. For benchmarks, keep the existing per-contract threshold checks and add the baseline comparison as an additional gate; ensure the step fails (not skips) when benchmark_results.json or benchmarks/baseline.json is missing. For cargo audit, pin the cargo-audit version and use the RustSec advisory DB; if a JSON-parsing wrapper is used, treat severity 'critical' and 'high' as failures and lower severities as warnings. Clippy should run with the same toolchain as tests (rust-toolchain.toml) and be a required step, not continue-on-error.

Changes

  • Add an issue-reference validation step to the changelog job. After the existing format validation, add a step (with permissions: issues: read added to the workflow permissions) that extracts the PR's added lines under the [Unreleased] section of CHANGELOG.md (via git diff against the base SHA) and requires each added entry line to contain a reference matching #NNN or 'closes #NNN'. For every referenced number, query the GitHub API (e.g. gh api repos/${{ github.repository }}/issues/NNN or actions/github-script) and fail the job with a clear ::error:: message if any entry lacks a reference or any referenced issue does not exist in the repository. (.github/workflows/changelog-check.yml)
  • Document the mandatory issue-reference requirement in the changelog template: state that every entry under [Unreleased] must end with a reference in the form (#NNN) or 'closes #NNN', that the referenced issue must exist in the repository, and that CI (changelog-check.yml) will fail otherwise. Update the existing examples and the 'Reference issues/PRs when available' guideline to make the reference required rather than optional. (docs/CHANGELOG_TEMPLATE.md)
  • Add a regression-gating step to the benchmark-markets job that runs after the benchmarks and compares benchmark_results.json against benchmarks/baseline.json, failing the workflow when any entrypoint's mean_ns exceeds its baseline mean_ns by more than 10% (or by the entry's max_regression_pct if stricter). Replace the existing inline heredoc comparison (which uses a 5% limit and exits 0 when results are missing) with a step that invokes scripts/check_benchmarks.py in --skip-run mode against the committed baseline, or a corrected inline comparison that exits non-zero on >10% regressions and on missing baseline/results, printing a clear per-entrypoint diff. (.github/workflows/benchmarks.yml)
  • Extend scripts/check_benchmarks.py to support baseline comparison against benchmarks/baseline.json: add a --baseline-json argument (default benchmarks/baseline.json) and a --max-regression-pct argument (default 10.0), load the baseline's benchmarks map, compare each matching entry in benchmark_results.json by mean_ns, and mark the run as failed (exit 1) when any entrypoint exceeds its baseline by more than the configured percentage (using the entry's max_regression_pct when present). Print a PASS/FAIL line per entrypoint and include the baseline comparison in the generated reports. (scripts/check_benchmarks.py)
  • Add two required steps to the test job in ci.yml: (1) a clippy step running 'cargo clippy --workspace --all-targets -- -D warnings' so any lint warning fails the build; (2) a cargo audit step that installs cargo-audit (e.g. via taiki-e/install-action or 'cargo install cargo-audit --locked') and runs 'cargo audit' configured to fail on CRITICAL and HIGH severity advisories (e.g. --deny warnings with the advisory-db, or a wrapper that parses the JSON output and exits non-zero for critical/high). Place both steps after the toolchain verification and before/alongside the test step so they gate the job. (.github/workflows/ci.yml)

Co-authored-by: Simple Agent <agent@simple.dev>
@drips-wave

drips-wave Bot commented Nov 24, 2026

Copy link
Copy Markdown

@woodlonestar-lang 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

@dultimateade
dultimateade merged commit b5c5b64 into dultimateade:main Nov 25, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants