Skip to content

chore: apply code review feedback for PR #2520 [approved]#2560

Merged
arii merged 2 commits into
feat/issue-impact-scripts-submodules-6659404272263102890from
fix/pr-2520-code-review-feedback-6407712281537791444
Jun 19, 2026
Merged

chore: apply code review feedback for PR #2520 [approved]#2560
arii merged 2 commits into
feat/issue-impact-scripts-submodules-6659404272263102890from
fix/pr-2520-code-review-feedback-6407712281537791444

Conversation

@google-labs-jules

@google-labs-jules google-labs-jules Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This PR implements the changes recommended in code review for PR #2520. The updates include improving test script execution in package.json by ensuring that test failures are not masked, and refining the knip.ts entry points for more accurate dead code analysis by eliminating non-entry test and impact scripts.

Scope Minimization Suggestions:

  1. Review test snapshots for removal if they are not needed for the current test cases.
  2. Consider further reducing the entry points in knip.ts by assessing if all current paths are necessary.

- Modify `package.json` test script to use `run-p` (npm-run-all) instead of `&&` to run app tests and script tests in parallel without short-circuiting on single-suite failure.
- Update `knip.ts` entry paths to exclude `scripts/__tests__/*.ts` and `scripts/impact/*.ts` from the entry array to improve dead code analysis accuracy.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployment Details (Last updated: Jun 18, 2026, 4:37 PM PST)

🚀 Pushed to gh-pages; publish in progress

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Impact Analysis Details (Last updated: Jun 18, 2026, 4:36 PM PST)

Impact Analysis Complete

Deployment Review

Summary

Impact Level: LOW

📝 Changed Files (19)
  • .github/actions/setup-node-pnpm/action.yml
  • .github/workflows/ai-chatops.yml
  • .github/workflows/ci.yml
  • .github/workflows/mass-audit-prs.yml
  • .github/workflows/mergellama.yml
  • .github/workflows/self-healing.yml
  • .github/workflows/wcs_etl.yml
  • knip.ts
  • package.json
  • pnpm-lock.yaml
  • scripts/tests/build.test.ts
  • scripts/impact-dom-diff.ts
  • scripts/impact-review-utils.ts
  • scripts/impact-visual-diff.ts
  • scripts/impact/metric-calculator.ts
  • scripts/impact/parser-sanitizer.ts
  • scripts/impact/preview-server.ts
  • scripts/impact/report-generator.ts
  • scripts/vitest.config.scripts.ts

Routes Reviewed

No concrete routes required review.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🐙 GitHub Models Code Review

Powered by GitHub Models

Reviewing: PR #2560

Code Review Feedback

Review of the provided code diff:

1. knip.ts

  • Only a minor change: added 'gh' to ignoreBinaries. No high severity issues.

2. package.json

  • Test script change:

    • "test": "run-s -c test:app test:scripts"
      This changes the test command from running only vitest run to running two scripts in parallel: test:app and test:scripts.
      • High Severity Issue:
        • run-s -c (from npm-run-all) runs scripts concurrently. If both scripts write to the same output, or if there are shared resources (e.g., global mocks, test setup/teardown), this can cause race conditions, flaky tests, or corrupted output.
        • If test:app and test:scripts are not designed to run concurrently, this is a blocking issue.
        • If either script depends on the other, or if there are global side effects, this can break CI or local testing.
      • Action:
        • Confirm that test:app and test:scripts are fully isolated and safe to run concurrently. If not, use run-s (sequential) instead of run-s -c (concurrent).
        • If unsure, revert to sequential execution or add documentation/guards.
  • Dependency changes:

    • Added "zod": "^3.24.1": No high severity issue.
    • Various dependency upgrades: No high severity issue unless breaking changes are present, but this cannot be determined from the diff alone.

3. pnpm-lock.yaml

  • Dependency upgrades and additions, including zod.
  • No high severity issues visible in the lockfile changes.

Summary

Blocking Issue:

  • The change to "test": "run-s -c test:app test:scripts" is potentially unsafe unless both test suites are fully isolated and do not interfere with each other. Running tests concurrently can cause race conditions, flaky tests, or corrupted output if not handled carefully.

Action Required:

  • Revert to sequential execution or provide evidence that concurrent execution is safe.

[VERDICT: FAIL]


Generated by github-models-code-review

@arii arii changed the title chore: apply code review feedback for PR #2520 chore: apply code review feedback for PR #2520 [approved] Jun 18, 2026
@arii

arii commented Jun 18, 2026

Copy link
Copy Markdown
Owner

The PR has been reviewed and approved as the changes effectively address the feedback and enhance the code. It is recommended to consider removing any updated visual snapshots that do not contribute to the tests to streamline the codebase.

- Modify `package.json` test script to use `run-s -c` (npm-run-all) instead of `&&` to run app tests and script tests sequentially but guaranteeing both run even if the first fails without short-circuiting.
- Update `knip.ts` entry paths to exclude `scripts/__tests__/*.ts` and `scripts/impact/*.ts` from the entry array to improve dead code analysis accuracy.
@arii arii marked this pull request as ready for review June 19, 2026 00:17
@arii arii merged commit 21b462a into feat/issue-impact-scripts-submodules-6659404272263102890 Jun 19, 2026
8 of 11 checks passed
@arii arii deleted the fix/pr-2520-code-review-feedback-6407712281537791444 branch June 19, 2026 00:18
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