Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ updates:
interval: weekly
ignore:
- dependency-name: "@rocicorp/zero"
# postgres.js is the client handed to Zero's adapter, so it stays on the major
# @rocicorp/zero depends on (tests/test_pin.py checks this).
- dependency-name: postgres
update-types: ["version-update:semver-major"]
groups:
npm:
patterns: ["*"]
36 changes: 18 additions & 18 deletions harness/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"uuid": "^11.1.1"
},
"devDependencies": {
"@codspeed/tinybench-plugin": "6.0.1",
"@codspeed/tinybench-plugin": "6.1.0",
"c8": "12.0.0",
"tinybench": "6.2.2"
"tinybench": "6.2.3"
}
}
11 changes: 11 additions & 0 deletions tests/test_pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ def test_harnesses_run_the_pinned_zero() -> None:
def test_e2e_runs_the_pinned_zero_cache() -> None:
version = (ROOT / "ZERO_VERSION").read_text().strip()
assert f"image: rocicorp/zero:{version}" in (ROOT / "e2e" / "docker-compose.yml").read_text()


def test_harnesses_drive_zero_with_its_postgres_major() -> None:
# The oracle is the published package as it ships: the postgres.js client handed to its adapter
# must be the major release @rocicorp/zero itself depends on, or the oracle's results change with it.
import json

for project in ("harness", "e2e"):
lock = json.loads((ROOT / project / "package-lock.json").read_text())["packages"]
zero_postgres = lock["node_modules/@rocicorp/zero"]["dependencies"]["postgres"]
assert lock["node_modules/postgres"]["version"].split(".")[0] == zero_postgres.split(".")[0]
Loading