镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

refactor(ci): consolidate build and tool setup - #1204

Merged
mldangelo-oai merged 1 commit into
mainfrom
refactor/pr1185-followup-04-build
Oct 3, 2026
Merged

mldangelo-oai merged 1 commit into
mainfrom
refactor/pr1185-followup-04-build

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

CI workflows repeat package-manager, Node and build setup. Move the repeated steps into a local composite action and simplify equivalent build and package checks.

Changes

  • Keep pinned versions, architecture choices, cache inputs and platform shell behavior in the shared action.
  • Include the action in sparse checkout and CI path selection; retain package inventory and tar/path protections.
  • Simplify compiler defaults and reuse the existing temporary-directory test owner.

Testing

On rebased head 7b2d678a, Bun 1.4.2 workflow/report tests passed (38 cases) and build/package-safety tests passed (21). Ruff check and format, CI compilation, portable plugin source checks, SDK/MCP types, the normal formatter, SDK build, npm pack, and archive validation passed (540 entries). Installed-package smoke passed on Node 22.13.0 with a private temporary root. Hosted checks for this rebased head have not run yet.

Earlier head 34375955 passed Windows Node 22/24 verification and test shards, macOS test shards and installed-package smoke, standalone plugin checks on all three operating systems, all eight native build targets, package checks, source contracts, types, and workflow checks. Its Linux parallel test-quality job failed on 30-second timeouts in both the initial run and one retry, on disjoint sets of unchanged tests; the dependent inventory comparison correctly failed. These hosted results belong to the earlier head.

Risk and rollout

The shared action affects multiple hosted platforms. The rebase preserves the patch's additions and deletions and includes the current package inventory from main. Fresh hosted checks, including Linux parallel test quality, must pass before merging. Test timeouts, parallelism, and quality gates are unchanged.

This patch has no source prerequisite within the series. Squash-merge it into main after review and checks pass.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T20:46:00.683721Z 7b2d678 Manual request
🔒 Security Review ✅ Completed 2026-10-03T20:45:39.685350Z 7b2d678 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head 3437595.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 343759556b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The shared action affects multiple platforms and architectures, while hosted Windows/macOS validation remains pending.

Review effort: Balanced
Findings: None

What changed in this PR

Consolidates repeated CI tool setup into a shared composite action and simplifies supporting build, package, and test code.

Changes:

  • Reuses pinned pnpm and Node setup across workflows, preserving architecture and shell choices.
  • Includes the shared action in sparse checkout and CI path-selection coverage.
  • Simplifies compiler configuration, package inventory checks, and temporary-directory cleanup.
File Description
sdk/​typescript/​tsconfig.json Removes redundant compiler settings and exclusions.
sdk/​typescript/​tsconfig.build.json Removes redundant build exclusions.
sdk/​typescript/​tests-ts/​test-reports.test.ts Reuses temporary-directory cleanup helper.
sdk/​typescript/​tests-ts/​container-ci-workflow.test.ts Tests shared-action change triggers.
sdk/​typescript/​tests-ts/​build-plugin.test.ts Reuses temporary-directory cleanup helper.
sdk/​typescript/​scripts/​compare-test-reports.mts Simplifies report-matching expression.
sdk/​typescript/​scripts/​check-plugin-source.mjs Uses import.meta.dirname.
sdk/​typescript/​scripts/​check-package.mjs Consolidates allowed package entries.
sdk/​typescript/​scripts/​build-plugin.mjs Simplifies directory resolution and path validation.
plugins/​codex-security/​mcp-app/​tsconfig.json Removes redundant settings and formats includes.
.github/​workflows/​test-quality.yml Adopts shared tool setup.
.github/​workflows/​node-ci.yml Adopts shared setup and updates checkout and triggers.
.github/​workflows/​native-windows.yml Delegates setup and compilation with explicit architecture.
.github/​workflows/​native-unix.yml Delegates setup and compilation.
.github/​workflows/​native-musl.yml Delegates setup and compilation.
.github/​scripts/​invoice-desk-target.mjs Combines filtering and mapping.
.github/​actions/​setup-tools/​action.yml Adds shared setup with optional compilation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

CI workflows repeat package-manager, Node and build setup. Move the repeated steps into a local composite action and simplify equivalent build and package checks.
@mldangelo-oai
mldangelo-oai force-pushed the refactor/pr1185-followup-04-build branch from 3437595 to 7b2d678 Compare October 3, 2026 20:43
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head 7b2d678.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 7b2d678a93

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The cross-platform setup refactor still needs successful hosted checks on the rebased head, including Linux parallel test quality.

Review effort: Balanced
Findings: None

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 7b2d678a93cdeea4db9496bfa557a13c5a88d724 against 775e48ffbf682075e60303eb019131aa2390c3b2. No serious introduced code findings remain. I am withholding approval until the new-head hosted CI finishes successfully.

All 17 files retain the same ordered added/removed PR contributions as the previous reviewed head, so the three independent full-diff reviews, including all test changes, remain applicable. I separately verified the one inherited touched-file change: the package allowlist entry from #1133.

Fresh validation on this head passed: native host build, plugin and SDK builds, types, formatting, 32 focused SDK tests, Ruff 0.16.9, portable source checks and their 9 tests, and the production package archive check (540 entries). All 801 tracked source blobs still match this head. Local platform was macOS arm64; no model execution, local Windows run, or installed-package smoke test.

The earlier head's five Ubuntu parallel-test timeouts remain unexplained; all five unchanged targeted local controls passed. That historical failure does not describe this head's CI. Current node-ci run 37152559999, attempt 1, is still unfinished.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving exact head 7b2d678 now that its hosted CI has completed successfully. The prior CI-only hold is cleared; node-ci attempt 1 passed with 66 successful jobs and one skipped job.

The three independent full-diff reviews, including all tests, remain applicable: all 17 ordered file contributions are unchanged, and the inherited package allowlist change was reconciled. Root verification found no serious introduced issue. Fresh validation at this head passed 32 focused SDK tests, nine source-check tests, builds, types, formatting, Ruff and a 540-entry production package archive. Reviewed source files remain unchanged. No duplicate reviews or test runs were needed for this CI completion; no installed-package smoke, model execution or local Windows run was performed.

@mldangelo-oai
mldangelo-oai merged commit b453780 into main Oct 3, 2026
91 of 107 checks passed
@mldangelo-oai
mldangelo-oai deleted the refactor/pr1185-followup-04-build branch October 3, 2026 22:06
@github-actions github-actions Bot mentioned this pull request Oct 3, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants