Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.89 KB

File metadata and controls

58 lines (41 loc) · 1.89 KB

Summary

This PR resolves several infrastructure, testing, and documentation issues to improve the repository's baseline health before release. It adds automated load testing, container vulnerability scanning, issue/PR templates, and a security disclosure policy.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Smart contract change

Related issue

Closes #905 Closes #906 Closes #907 Closes #908

Changes

  • Added baseline.js k6 script and loadtest.yml workflow for manual performance testing.
  • Added Trivy container scanning to deploy-staging.yml to fail on CRITICAL vulnerabilities.
  • Added .trivyignore and docs/wiki/security-scanning.md.
  • Added GitHub issue templates (Bug, Feature, Security, Config) and a PR template.
  • Added SECURITY.md defining our disclosure policy and linked it from README.md.

Backend Fixes

  1. Event Indexer Test Stability:

    • Aligned the test expectation in eventIndexer.test.ts with the observed behavior in CI (handling separate score update calls).
    • Ensured all required Jest globals are explicitly imported for ESM compatibility.
  2. ESM Connection Exports:

    • Fixed a SyntaxError where getClient was not recognized as an export from connection.js by making exports more explicit. This resolves failures in controller tests (e.g., poolController).

Verification

  • Frontend: Manual testing of forms (precision) and logout flow.
  • Backend: Verified manual code review of indexer logic and connection exports.

Fixes: #580 fixed Fixes: #578 fixed Fixes: #562 fixed Fixes: #567 fixed

Testing

  • Tested locally (Syntax and sanity checks)
  • Added/updated unit tests
  • Manually tested UI flow

Checklist

  • My code follows the project style
  • I've updated docs if needed
  • No console errors or warnings
  • I've rebased on latest main