pgx_ulid: init at 0.2.0#371463
Conversation
nixos/tests/postgresql/pgx_ulid.nix
Outdated
There was a problem hiding this comment.
(possibly out of scope for here, but the resource usage is a problem, not sure whether blocking or not...)
A full VM test is pretty heavy for resource usage.. because we're not running a single VM test, but 10 of them. Running all postgresql related VM tests already takes way too much time / memory right now.
Also VM tests have the downside of not working on darwin, yet, IIRC (this might be outdated, not sure).
I don't see anything specific in those tests that might need a VM test - we could achieve the same with a test based on postgresqlTestExtension. There are a few examples of this in other extensions.
Those don't use any expectations, yet - just basic running of SELECT statements. I wonder whether we could extend postgresqlTextExtension to support pgtap-based basic tests.
(there could also be a problem with buildPgrxExtension, not sure if it supports finalAttrs, yet, which we'd need for that)
There was a problem hiding this comment.
I don't see anything specific in those tests that might need a VM test - we could achieve the same with a test based on postgresqlTestExtension. There are a few examples of this in other extensions.
Thanks for pointing out this function - the only reason I have used the VM tests is because I was not aware of it. Will replace them.
Those don't use any expectations, yet - just basic running of SELECT statements. I wonder whether we could extend postgresqlTextExtension to support pgtap-based basic tests.
It is not a big deal since the tests I have provided are meant to be rather smokish, so the lack of assertions should be fine for now.
There was a problem hiding this comment.
(there could also be a problem with buildPgrxExtension, not sure if it supports finalAttrs, yet, which we'd need for that)
Yeah, it does not accept the argument yet. For now, I have just removed the VM tests as updating this function and its dependencies is out of scope.
|
|
I get this build error for aarch64-darwin: |
|
Hm, that might be unrelated to this PR though.. I saw something similar on #371242. |
Debugging this more leads me towards a problem with MacOS updates. So not blocking here. |
pgx_ulid is a Postgres ULID extension developed with pgrx.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.