ci: harden validation + ci workflows for Gitea act-runner (pre-existing main red fixes) #2
Reference in New Issue
Block a user
Delete Branch "devin/ci-hardening-1776555113"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Pre-existing Gitea Actions failures on
mainthat are not caused by any open PR. Observed on run #211 (head07d9ce4876) before Phase 1b PR #1 was opened. Scope limited to YAML-only changes — no runner-image changes, no new secrets, no submodule surgery.Failures addressed
Terraform Validation (
ci.yml::terraform,validation.yml::validate-terraform)hashicorp/setup-terraform@v2/@v3fails with:Fix: install
unzipin-job (idempotent, no-ops if already present). Better than requiring an act-runner image rebuild.Security Scanning / Container Security Scan (
ci.yml::security,validation.yml::validate-security)aquasecurity/trivy-action@masterfails with:Root cause: Gitea Actions injects a Gitea token as
GITHUB_TOKEN, whichapi.github.com/repos/aquasecurity/trivy/releases/latestrejects.Fix:
@0.28.0+ pinversion: v0.51.1→ installer skips thereleases/latestlookup entirely.GITHUB_TOKEN: ""in the step env → installer falls back to anonymous.continue-on-error: trueon the validation.yml step so a flaky scan does not block PRs (ci.yml already had this).Upload Trivy results (
validation.yml::validate-security)github/codeql-action/upload-sarif@v2targets GitHub's code-scanning API, which Gitea does not host.Fix:
continue-on-error: true(ci.yml already had this).Out of scope — flagged for follow-up
These will still fail after this PR merges; they require actual investigation, not a YAML tweak:
CI/CD Pipeline / Solidity Contracts—lib/dodo-contractV2pinned commitd946606870b64110218820da44becf2b3e196c8ano longer exists on the remote. Fix options: update the submodule pointer to a new pinned commit, or restore the missing commit on the remote. Likely means pointing the submodule at the Gitea mirror if one exists.Validation / validate-kubernetes—kubectl apply --dry-run=clientfails withconnect: connection refusedbecause it tries to contactlocalhost:8080. The fix is to pass--validate=false(or run--dry-run=serveragainst a kind cluster). Separate design call.CI/CD Pipeline / Lint and Format—forge fmt --checkactually finds formatting issues incontracts/. Real code-style work, not CI-plumbing.Verification
M lib/*flags in localgit statusare from an existing detached-HEAD checkout and are not staged.Scope
- MessageQueue: resetRetryCount and retry({ increment: false }) for shedder/inventory paths - RelayService: treat bridge_inventory_probe like other soft-failure scopes; wrap inventory check in try/catch - Token aggregation: catch DB pool lookup errors and fall back to live DODO path - Mainnet WETH profile: START_BLOCK=latest; extend RELAY_SKIP_MESSAGE_IDS for backlog hygiene - Extend relay test.js for deferred requeue behavior Made-with: CursorTag @0.28.0 does not exist in act-runner's reference resolution ("Unable to resolve 0.28.0: reference not found"). Use @master and rely on the 'version: v0.51.1' input to pin the Trivy binary so the installer still skips api.github.com releases/latest. Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.