Files
next.js/test/update-bundler-manifest.d.ts
Benjamin WoodruffandGitHub 8a91d46830 refactor(CI): Merge all four bundler test manifest scripts into one (#76652)
These scripts were 95% identical, so they can just be one script that
accepts a few arguments.

```
$ node test/update-bundler-manifest.js --help
Options:
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]
  --bundler     The JavaScript bundler the tests were run against
                                     [required] [choices: "turbopack", "rspack"]
  --test-suite  Test group to update        [required] [choices: "dev", "build"]
  --branch      the git branch to filter CI artifacts to
                                                    [string] [default: "canary"]
  --override    Don't merge with existing test results, allowing tests to
                transition to a failed state                           [boolean]
```

Tested by running:

```
node test/update-bundler-manifest.js --bundler rspack --test-suite dev --override
node test/update-bundler-manifest.js --bundler rspack --test-suite build --override
```
2025-02-28 15:38:09 +00:00

29 lines
539 B
TypeScript

/// <reference path="../.github/actions/next-integration-stat/src/manifest.d.ts" />
type ListArtifactsResponse = {
total_count: number
artifacts: Artifact[]
}
type Artifact = {
id: number
node_id: string
name: string
size_in_bytes: number
url: string
archive_download_url: string
expired: false
created_at: string
expires_at: string
updated_at: string
workflow_run: WorkflowRun
}
type WorkflowRun = {
id: number
repository_id: number
head_repository_id: number
head_branch: string
head_sha: string
}