Skip to content

Add ci and fix tests v2 - #5

Merged
Jengro777 merged 2 commits into
mainfrom
add-ci-and-fix-tests-v2
Aug 20, 2026
Merged

Jengro777 merged 2 commits into
mainfrom
add-ci-and-fix-tests-v2

Conversation

@Jengro777

Copy link
Copy Markdown
Member

No description provided.

- ci.yml: run v test . on push/PR to main, pin V 0.5.2, use
  checkout@v7 with least-privilege permissions, add concurrency
  and timeout
- roundtrip_fuzz_test: migrate to current rand API (new_default,
  int_in_range) and match document sum-type variants directly
The 0.5.2 release tag fails to compile itself on ubuntu-latest
(vlib os C.open declaration conflict). Pin a known-good master
commit (aaaf0c7) instead, which builds and passes the full suite.
Copilot AI balanced review requested due to automatic review settings August 20, 2026 01:25

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.

Pull request overview

Adds GitHub Actions CI and updates the round-trip fuzz test for deterministic, instance-based randomness and current document types.

Changes:

  • Adds Ubuntu CI running the full V test suite.
  • Makes fuzz generation reproducible with a seeded PRNG.
  • Updates sum-type matching to use document variants.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Adds the CI workflow and pinned V compiler setup.
tests/roundtrip_fuzz_test.v Updates deterministic fuzzing and type matching.

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

import kdl
import rand
import rand.seed
import document
assert_values_equivalent(a.value, b.value, iter, ndx, eidx)
} else {
assert false, 'iter ${iter} node[${ndx}] entry[${eidx}]: type mismatch Argument vs ${typeof(b)}'
assert false, 'iter ${iter} node[${ndx}] entry[${eidx}]: type mismatch Argument'
@Jengro777
Jengro777 merged commit 721a303 into main Aug 20, 2026
2 checks passed
@Jengro777
Jengro777 deleted the add-ci-and-fix-tests-v2 branch August 20, 2026 01:33
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.

2 participants