Skip to content

Migrate E2E scorecard modules to .mts #6927

Closed

Description

@cv

Parent: #6918

Relative migration effort: High

Files

  • scripts/scorecard/analyze-trace-timing.ts
  • scripts/scorecard/build-slack-blocks.ts
  • scripts/scorecard/summarize-jobs.ts

Work

Convert the scorecard modules from CommonJS-style TypeScript to named ESM exports in .mts files. Update the actions/github-script scorecard step from synchronous require() to an ESM-safe loading path, plus sparse-checkout assumptions, tests, workflow-boundary assertions, and typecheck:scorecard.

Acceptance criteria

  • Scheduled, manual full-run, and selective-dispatch scorecards produce the same job counts, trace analysis, Slack blocks, fallback text, and channel selection.
  • The workflow loads the .mts modules on its pinned action runtime without a repository dependency-install step.
  • Malformed or oversized trace artifacts retain the same bounded validation and warnings.
  • No CommonJS module.exports, ambient require, or old .ts workflow path remains.
  • Scorecard unit tests, E2E-support workflow-boundary tests, npm run typecheck:scorecard, and npm run typecheck:cli pass.

Activity

  1. added
    help wanted
    area: ci
    on Jul 15, 2026
  2. added theissue type on Jul 15, 2026
  3. added a commit that references this issue on Jul 16, 2026
    ad7be40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: cihelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions