-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process as test (VM -> Native test) #38
Conversation
Could you add a Github Actions workflow for running the new tests? As well as a justfile entry for |
Another interesting point to consider here would be to only display the test logs, but filtering out all the other processes' logs might cause problems with visibility because if they fail we won't know why. Essentially we need a way to display logs of a given process if the process ended with a non-zero exit code. |
I’m currently doing this as follows ''
${pc-warapper} >/dev/null 2>&1 &
pc_pid=$!
${pc-warapper} process logs test -f &
test_logs_pid=$!
wait $pc_pid
kill $test_logs_pid
'' On first line you could redirect to tmp file and display last X lines if exit code is non-zero. Note that displaying only the logs of the test process will get easier once this is addressed. Logs for all processes could then be collected using |
Thanks! Will give it a shot. |
CI works 🥳 |
On macOS (Nix 2.17), I get:
This is odd,
Tests run on NixOS though. |
Co-authored-by: Sridhar Ratnakumar <[email protected]>
This also happens on my macOS with I tried on different macOS (with By MacOS I mean |
@srid A nicer implementation will be to disable swagger endpoint so that we won't have this conflict. |
Yea, I was thinking of an upstream contribution to that end. Or we can set port to
|
Can we do this separately in a different PR? I feel like we won't even need it, but let's see if a need actually arises over time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once process-compose-flake is updated.
a724252
to
467e767
Compare
@srid Looks like the CI is running forever when I set |
Looks like we can only override keys that are not already set in the base yaml configuration. We can either upstream the change in process-compose or use two overlays (one for |
Oh, I thought we are automatically disabling the test process. I think we should upstream a change to process-compose-flake such that After all, "test" has a special name in process-compose-flake, and it should behave uniformly across all outputs it produces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this merged, after switching upstream flake url.
Done! |
Great, you can (squash) merge it yourself. |
Resolves #32
Run native test
just test
TODO