Skip to content

test: keep julia and vp checks in sync with Renovate updates - #8537

Merged
viceice merged 1 commit into
mainfrom
viceice/fix-renovate-tests
Dec 1, 2026
Merged

viceice merged 1 commit into
mainfrom
viceice/fix-renovate-tests

Conversation

@viceice

@viceice viceice commented Dec 1, 2026

Copy link
Copy Markdown
Member

Changes

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Use of AI in replying to PR comments

Who answers review comments:

  • @viceice will read and reply directly. Name the account.
  • An agent will draft replies and @username will read them before they are posted. Name the account.
  • An agent will draft replies and reply autonomously. This is heavily discouraged, and we prefer that there are humans in the loop
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified tests

Drafted by Claude Code (Claude Opus 5.5, low effort) on behalf of @viceice.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
@viceice
viceice enabled auto-merge December 1, 2026 12:03
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-code-review

qodo-code-review Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

test: keep Julia and vp version checks in sync with Renovate

🧪 Tests 🕐 Less than 10 minutes

Grey Divider

AI Description

• Moves the Julia version into ARG JULIA_VERSION so the julia --version check follows Renovate
 bumps.
• Relaxes the vp sync test so the vite alias accepts any vite-plus-core version, since vp 1.8.0
 ties it to the Vite version.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 4b35da7
Diagram

graph TD
  A["Renovate PR"] --> B["test/julia/Dockerfile"]
  A --> C["test/node/vp/sync-versions.mjs"]
  B --> D["ARG JULIA_VERSION"]
  D --> E["install-tool julia"]
  D --> F["julia --version grep"]
  C --> G["vite-plus-core regex"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Read the expected version from the install step at test time
  • ➕ No duplicated version literal
  • ➕ Works for any future Renovate bump
  • ➖ More scripting in the Dockerfile test
  • ➖ Harder to read than a plain grep
2. Pin the vite-plus-core version in the vp test
  • ➕ Strictest check
  • ➖ Breaks on every vp or Vite release
  • ➖ Defeats the purpose of the change

Recommendation: Keeping the ARG is the right fix. Pinning the vp test to a fixed vite-plus-core version would break again on the next upstream change. The regex is the minimal fix, but the extra notEqual assertion should be reviewed.

Files changed (2) +8 / -5

Bug fix (1) +4 / -3
DockerfileMove Julia version into a build ARG +4/-3

Move Julia version into a build ARG

• The Julia version moves into ARG JULIA_VERSION=v1.13.3, and both install-tool and the julia --version check read from it. The check strips the leading v with ${JULIA_VERSION#v}. The Renovate annotation gains depName=julia so Renovate can update the ARG default.

test/julia/Dockerfile

Tests (1) +4 / -2
sync-versions.mjsAccept any vite-plus-core version for the vite alias +4/-2

Accept any vite-plus-core version for the vite alias

• The exact vite alias check becomes a regex matching npm:@voidzero-dev/vite-plus-core@<semver>, no longer tied to the vp version. A new notEqual assertion compares the synced vite value with the manifest's vite value. Reviewers should confirm it holds when the versions already match, since it could fail on a no-op sync.

test/node/vp/sync-versions.mjs

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1)

Grey Divider


Remediation recommended

1. vp check no longer verifies the vite-plus-core version 🐞 Bug
Description
The vite assertion in sync-versions.mjs now only requires npm:@voidzero-dev/vite-plus-core@
followed by any x.y.z, and the added notEqual only rejects the placeholder 0.0.0 from the input
manifest. The test therefore passes for any published core version, including one unrelated to the
installed Vite version, and would not catch a planner regression that drops or misassigns the core
version.
Code

test/node/vp/sync-versions.mjs[R83-85]

+    /^npm:@voidzero-dev\/vite-plus-core@\d+\.\d+\.\d+/,
  );
+  assert.notEqual(devDependencies.vite, manifest.devDependencies.vite);
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
In `test/node/vp/sync-versions.mjs` the `vite` devDependency assertion was loosened to a regex that accepts any `vite-plus-core` version, and the `notEqual` check only excludes the placeholder `0.0.0`. The test no longer detects a wrong or missing core version.

## Fix Focus Areas
- test/node/vp/sync-versions.mjs[80-86]

## Recommended Fix
Derive the expected core version independently and assert equality. For example, read the Vite version that `vp` reports or the version of `@voidzero-dev/vite-plus-core` published for the installed vp (e.g. from `vp --version` output or the vp package metadata), and assert `devDependencies.vite === "npm:@voidzero-dev/vite-plus-core@" + expected`. If no such source is available, at least assert the version is not equal to the vp `version` only when the planner's documented behavior requires it, and document the rationale in a comment.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Tip of the day
💡 Did you know, you can pick a display mode instead of tweaking every Display option by hand

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@viceice
viceice added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 50c1bb5 Dec 1, 2026
56 checks passed
@viceice
viceice deleted the viceice/fix-renovate-tests branch December 1, 2026 12:54
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 15.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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