Skip to content

Conversation

@jmoggr
Copy link
Collaborator

@jmoggr jmoggr commented Nov 4, 2025

This creates:

  • a new Nix package which is responsible for running the vitest tests from the frontend package.
  • a new Nix check, which is a full catcolab host running in a VM that we run the frontend tests against.

This result is end-to-end tests against a host that was setup from scratch.

I needed to bump the vitest version and some follow on dependencies to let vitest run in a read-only environment.

@jmoggr jmoggr force-pushed the frontend-tests-ci branch from 1a3dd7c to 79aa62c Compare November 4, 2025 19:14
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

@jmoggr jmoggr force-pushed the frontend-tests-ci branch 3 times, most recently from 194317b to c272965 Compare November 4, 2025 23:35
@jmoggr jmoggr force-pushed the frontend-tests-ci branch 5 times, most recently from c6c10b5 to 65cb065 Compare November 7, 2025 19:51
@jmoggr jmoggr marked this pull request as ready for review November 7, 2025 20:02
@jmoggr jmoggr requested a review from epatters November 7, 2025 20:02
@jmoggr jmoggr marked this pull request as draft November 13, 2025 15:43
@github-actions github-actions bot temporarily deployed to netlify-preview November 20, 2025 16:15 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview November 20, 2025 16:57 Destroyed
@jmoggr jmoggr marked this pull request as ready for review November 21, 2025 16:47
@epatters epatters added frontend TypeScript frontend and Rust-wasm integrations backend Backend, including web server and database labels Nov 24, 2025
Copy link
Member

@epatters epatters left a comment

Choose a reason for hiding this comment

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

Thanks Jason, it will be great to run the full test suite in CI. Two questions/comments below.

@github-actions github-actions bot temporarily deployed to netlify-preview November 25, 2025 17:22 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview November 26, 2025 15:22 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview December 1, 2025 13:24 Destroyed
@jmoggr jmoggr force-pushed the frontend-tests-ci branch from 510c446 to 5d8701a Compare December 1, 2025 14:02
@github-actions github-actions bot temporarily deployed to netlify-preview December 1, 2025 14:03 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview December 1, 2025 18:36 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview December 1, 2025 19:15 Destroyed
@github-actions github-actions bot temporarily deployed to netlify-preview December 1, 2025 19:21 Destroyed
Copy link
Member

@epatters epatters left a comment

Choose a reason for hiding this comment

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

Hi Jason, I tried reverting the changes to the pnpm lock file caused by accidentally adding jsdom and now I'm getting a hash mismatch that I can't figure out how to fix. Can you fix this and also remind me what I should do in the future?

@github-actions github-actions bot temporarily deployed to netlify-preview December 2, 2025 00:19 Destroyed
@epatters epatters merged commit 51898ad into main Dec 2, 2025
19 checks passed
@epatters epatters deleted the frontend-tests-ci branch December 2, 2025 00:45
@jmoggr
Copy link
Collaborator Author

jmoggr commented Dec 2, 2025

I pushed a fix.

Steps:

  • Comment out hash in frontend/default.nix
  • run nix build .#frontend, it'll spit out an error like:
error: hash mismatch in fixed-output derivation '/nix/store/x9c0r42gkz8kb916l636mvpbci2wf9bs-frontend-pnpm-deps.drv':
         specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
            got:    sha256-FqjdtE/OgmV+aYGh1AijQqvfg9/UQC/dClJRTLyGxCE=
  • replace the old hash with the got hash.

I'll make sure to improve the docs on this

I tried reverting the changes to the pnpm lock file

It's possible that there was another instance of something changing and the hash not getting updated. Fortunately this PR should prevent that going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend, including web server and database frontend TypeScript frontend and Rust-wasm integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants