Skip to content

ci: allow dependency manifest policy bumps#134

Merged
saagpatel merged 1 commit into
masterfrom
codex/ci/dependency-manifest-policy-gate
May 31, 2026
Merged

ci: allow dependency manifest policy bumps#134
saagpatel merged 1 commit into
masterfrom
codex/ci/dependency-manifest-policy-gate

Conversation

@saagpatel
Copy link
Copy Markdown
Owner

Summary

  • Treat dependency manifest-only changes as their own CI policy class.
  • Keep production-code, API-surface, and architecture gates intact for mixed or behavioral changes.

Verification

  • node --check scripts/ci/require-tests-and-docs.mjs
  • node scripts/ci/require-tests-and-docs.mjs
  • dependency manifest classifier smoke via node
  • pnpm run check:workflow-drift
  • pnpm run check:version-parity

Note: local lint-staged/eslint could not run because this workstation's node_modules install is missing published package build files; GitHub CI will run from a fresh install.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 407c389b42

ℹ️ 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".

const isRustTest = (file) => /^src-tauri\/tests\//.test(file);
const isPythonTest = (file) => /^search-api\/tests\//.test(file) || /^search-api\/test_.*\.py$/.test(file);

const dependencyManifestFiles = new Set([
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include all dependency manifests in the policy exemption

The hard-coded manifest allowlist is incomplete for this repo: git ls-files shows tracked manifests such as src-tauri/fuzz/Cargo.toml and docs/deck/package.json that are not in this set. When a dependency-only bump touches search-api/requirements.txt plus one of those manifests, prodChanged is true but dependencyManifestOnly becomes false, so the new exemption still rejects the PR as “production code changed without test updates” even though every changed file is a dependency manifest.

Useful? React with 👍 / 👎.

@saagpatel saagpatel merged commit 23df8e0 into master May 31, 2026
33 checks passed
@saagpatel saagpatel deleted the codex/ci/dependency-manifest-policy-gate branch May 31, 2026 13:09
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.

1 participant