-
Notifications
You must be signed in to change notification settings - Fork 888
chore: experiment building dogfood image with nix #11680
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
Conversation
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.
No harm to give this a shot! The main acceptance criterion here is that develop.sh
runs the same in this image as in the main dogfood image, and that we can run e.g. make test-postgres
.
@johnstcn Both of these work <3 |
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.
I think this is a good approach. We have a fallback option in case of issues with the Nix image.
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.
👍
This PR builds a new dogfood image with minimum tools but all required dependencies to build and test coder. This is available as
codercom/oss-dogfood-nix:latest
and as an option in our dogfood template.Testing
make fmt
make gen
make lint
make build
make test
make test-postgres
make update-golden-files
gotestsum --junitfile="gotests.xml" -- -race ./...
./scripts/develop.sh
pnpm test
pnpm playwright:test
Note
This doesn't change or break any existing behavior.