Repository navigation
Conversation
…efined at `src/api Closes StellarGateLabs#843
…`dtolnay/rust-tool Closes StellarGateLabs#844
…supply-chain workf Closes StellarGateLabs#845
…eck-dashboard-a11y Closes StellarGateLabs#846
|
@shake-070 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix main build, CI fmt/clippy & RustSec, and dashboard a11y check
What was solved
#843 —
maindoes not compile:auth_layeris undefined atsrc/api/mod.rs:355Fix the
mainbuild break insrc/api/mod.rsby replacing the danglingauth_layer()call on the redelivery sub-router with the same inline per-MethodRouterauth layer used by sibling routes (middleware::from_fn_with_state(state.clone(), auth_middleware)), preserving the existing ordering so auth remains the outermostroute_layerand runs before the merchant redelivery limiter.Addressed:
auth_layer()call at the redelivery route inapi_v1()withmiddleware::from_fn_with_state(state.clone(), auth_middleware)so the crate compiles.route_layeron the redelivery route so auth runs before the merchant redelivery limiter (preservetest_redeliver_runs_auth_before_merchant_limitersemantics).authed/auth-layer pattern used by sibling routes; do not introduce a new helper unless needed.#844 — CI
fmt / clippyjob fails before it runs:dtolnay/rust-toolchain@masteris used without atoolchaininputFix the
fmt / clippyCI job in.github/workflows/ci.ymlby passing an explicittoolchaininput (matchingrust-toolchain.toml's MSRV) and requestingrustfmt, clippycomponents todtolnay/rust-toolchain@master, so the job reaches and runscargo fmt --checkandcargo clippy. Optionally hoist the MSRV into a workflow-levelenv: MSRVto prevent drift, but keep the change scoped to the CI workflow.Addressed:
with: toolchain: "1.94"(matchingrust-toolchain.toml) to thedtolnay/rust-toolchain@masterstep in thefmt-clippyjob of.github/workflows/ci.yml.components: rustfmt, clippyto that step socargo fmtandcargo clippyare available.fmt / clippyjob can reach and runcargo fmt --checkandcargo clippy --locked --all-targets -- -D warnings.#845 —
cargo auditfails in CI and in the weekly supply-chain workflow: cargo-audit 0.22.2 needs rustc 1.96, the repo pins 1.94Fix the broken RustSec scanning by switching both the
cargo audit (RustSec)job inci.ymland theSupply-chain securityworkflow to install a prebuilt cargo-audit binary viataiki-e/install-action@v2(option 2), then runcargo auditdirectly. This removes the MSRV conflict with the pinned 1.94 toolchain, avoids the ~60s compile, and keeps theignorelist consistent withdeny.toml.Addressed:
cargo auditrun to completion in thecargo audit (RustSec)job in.github/workflows/ci.ymlcargo auditrun to completion in.github/workflows/supply-chain.ymltaiki-e/install-action@v2withtool: cargo-audit) instead of compiling with the pinned 1.94 toolchain#846 — Dashboard a11y check never runs:
scripts/check-dashboard-a11y.mjsdeclaresdeclaredLabelstwice (SyntaxError)Fix the duplicated
declaredLabelsdeclaration inscripts/check-dashboard-a11y.mjsthat causes a SyntaxError aborting the whole a11y check, and extend the CI JavaScript syntax-check step to coverscripts/*.mjsin addition tostatic/.Addressed:
const declaredLabelsdeclaration (and its duplicated loop) in scripts/check-dashboard-a11y.mjs so the module parses; merge label lists if they differ.node scripts/check-dashboard-a11y.mjscan exit 0 against current static/dashboard.html (fix any assertions the script reports if they are within the script's own logic).node --checkover scripts/*.mjs, not just static/.Changes
README.md(modify)scripts/check-dashboard-a11y.mjs(modify).github/workflows/ci.yml(modify).github/workflows/dashboard.yml(modify).github/workflows/supply-chain.yml(modify)Approach
maindoes not compile:auth_layeris undefined atsrc/api/mod.rs:355#843 —maindoes not compile:auth_layeris undefined atsrc/api/mod.rs:355(Changed: README.md)fmt / clippyjob fails before it runs:dtolnay/rust-toolchain@masteris used without atoolchaininput #844 — CIfmt / clippyjob fails before it runs:dtolnay/rust-toolchain@masteris used without atoolchaininput (Changed: .github/workflows/ci.yml)cargo auditfails in CI and in the weekly supply-chain workflow: cargo-audit 0.22.2 needs rustc 1.96, the repo pins 1.94 #845 —cargo auditfails in CI and in the weekly supply-chain workflow: cargo-audit 0.22.2 needs rustc 1.96, the repo pins 1.94 (Changed: .github/workflows/ci.yml, .github/workflows/supply-chain.yml)scripts/check-dashboard-a11y.mjsdeclaresdeclaredLabelstwice (SyntaxError) #846 — Dashboard a11y check never runs:scripts/check-dashboard-a11y.mjsdeclaresdeclaredLabelstwice (SyntaxError) (Changed: scripts/check-dashboard-a11y.mjs, .github/workflows/dashboard.yml)Issues
Closes #843
Closes #844
Closes #845
Closes #846