Skip to content

chore(nix): restore dbmate to the dev shell only - #1231

Merged
kalbasit merged 1 commit into
mainfrom
chore-nix-restore-dbmate-to-the
May 23, 2026
Merged

kalbasit merged 1 commit into
mainfrom
chore-nix-restore-dbmate-to-the

Conversation

@kalbasit

Copy link
Copy Markdown
Owner

dev-scripts/run.py's perform_clean() uses dbmate drop to reset
dev databases between scenarios. dbmate was removed in 80c4a15
along with sqlc; restore it to the dev shell only — keep it out
of nix/dev-packages.nix (shared with the docker-dev image) and
nix/packages/ncps/default.nix. Runtime migration is still
ncps migrate up (embedded goose).

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 22, 2026
This was referenced May 22, 2026
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 1ec29c3 to 1d95f60 Compare May 23, 2026 04:34
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from 0d3c8d6 to b6e7e5d Compare May 23, 2026 04:47
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 1d95f60 to 30d8101 Compare May 23, 2026 04:47
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from b6e7e5d to ed22618 Compare May 23, 2026 04:49
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 30d8101 to 941f4c9 Compare May 23, 2026 04:49
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from ed22618 to a32b090 Compare May 23, 2026 05:25
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 941f4c9 to 7257e05 Compare May 23, 2026 05:25
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from a32b090 to 15b6892 Compare May 23, 2026 05:29
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 7257e05 to 8d9fae7 Compare May 23, 2026 05:29
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from 15b6892 to 7a6ac96 Compare May 23, 2026 05:41
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 8d9fae7 to 22cbd69 Compare May 23, 2026 05:41
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from 7a6ac96 to ed89ef2 Compare May 23, 2026 05:53
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 22cbd69 to 479faa2 Compare May 23, 2026 05:53
@kalbasit
kalbasit force-pushed the gs-comments-1208-1228 branch from ed89ef2 to c016cee Compare May 23, 2026 06:06
@kalbasit
kalbasit force-pushed the chore-nix-restore-dbmate-to-the branch from 479faa2 to b6a213b Compare May 23, 2026 06:06
@kalbasit

Copy link
Copy Markdown
Owner Author

Automated stack merge failed during the rebase step. The merge-stack label has been removed from all PRs in the stack. Please resolve conflicts locally, push, and re-apply the label on the top-most PR to retry. Run: https://github.com/kalbasit/ncps/actions/runs/26326665317

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":401,"request":{"method":"PATCH","url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- This is an auto-generated comment: rate limited by coderabbit.ai -->\n\n> [!WARNING]\n> ## Review limit reached\n> \n> `@kalbasit`, we couldn't start this review because you've used your available PR reviews for now.\n> \n> Your plan currently allows 5 reviews/hour. Refill in 10 minutes and 36 seconds.\n> \n> Your organization has run out of usage credits. Purchase more in the [billing tab](https://app.coderabbit.ai/settings/subscription?tab=usage&tenantId=32762653-f2c3-46d1-950f-ea0cf172d376).\n> \n> <details>\n> <summary>⌛ How to resolve this issue?</summary>\n> \n> After more review capacity refills, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR.\n> \n> We recommend that you space out your commits to avoid hitting the rate limit.\n> \n> </details>\n> \n> \n> <details>\n> <summary>🚦 How do rate limits work?</summary>\n> \n> CodeRabbit enforces hourly rate limits for each developer per organization.\n> \n> Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.\n> \n> Please see our [FAQ](https://docs.coderabbit.ai/faq) for further information.\n> \n> </details>\n> \n> <details>\n> <summary>ℹ️ Review info</summary>\n> \n> <details>\n> <summary>⚙️ Run configuration</summary>\n> \n> **Configuration used**: Organization UI\n> \n> **Review profile**: CHILL\n> \n> **Plan**: Pro\n> \n> **Run ID**: `cd1947ad-dfb2-4ced-94cc-3e3e34fc0fad`\n> \n> </details>\n> \n> <details>\n> <summary>📥 Commits</summary>\n> \n> Reviewing files that changed from the base of the PR and between 9a2749a134c4257aeacc7af4a0145127f1af90c4 and 7b1291cc745185a30aa2bed47c8d4471466533ed.\n> \n> </details>\n> \n> <details>\n> <summary>📒 Files selected for processing (1)</summary>\n> \n> * `nix/devshells/flake-module.nix`\n> \n> </details>\n> \n> </details>\n\n<!-- end of auto-generated comment: rate limited by coderabbit.ai -->\n\n<!-- tips_start -->\n\n---\n\n\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->"},"request":{"retryCount":1,"signal":{}}},"response":{"url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","status":401,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","connection":"close","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Sat, 23 May 2026 15:01:51 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"github.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"045C:1D4B7:B5A1AAB:2BB89F3F:6A11C15F","x-xss-protection":"0"},"data":{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}}}

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":401,"request":{"method":"PATCH","url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- This is an auto-generated comment: rate limited by coderabbit.ai -->\n\n> [!WARNING]\n> ## Review limit reached\n> \n> `@kalbasit`, we couldn't start this review because you've used your available PR reviews for now.\n> \n> Your plan currently allows 5 reviews/hour. Refill in 6 minutes and 49 seconds.\n> \n> Your organization has run out of usage credits. Purchase more in the [billing tab](https://app.coderabbit.ai/settings/subscription?tab=usage&tenantId=32762653-f2c3-46d1-950f-ea0cf172d376).\n> \n> <details>\n> <summary>⌛ How to resolve this issue?</summary>\n> \n> After more review capacity refills, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR.\n> \n> We recommend that you space out your commits to avoid hitting the rate limit.\n> \n> </details>\n> \n> \n> <details>\n> <summary>🚦 How do rate limits work?</summary>\n> \n> CodeRabbit enforces hourly rate limits for each developer per organization.\n> \n> Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.\n> \n> Please see our [FAQ](https://docs.coderabbit.ai/faq) for further information.\n> \n> </details>\n> \n> <details>\n> <summary>ℹ️ Review info</summary>\n> \n> <details>\n> <summary>⚙️ Run configuration</summary>\n> \n> **Configuration used**: Organization UI\n> \n> **Review profile**: CHILL\n> \n> **Plan**: Pro\n> \n> **Run ID**: `9b8b40b5-6c67-44ba-a94d-b976f89d7665`\n> \n> </details>\n> \n> <details>\n> <summary>📥 Commits</summary>\n> \n> Reviewing files that changed from the base of the PR and between 9caaac1238d861ed094e1c1e620fe3b09bc256c5 and aaf8bb73bba78a96c79c54c81e3dd6cc87d4eb89.\n> \n> </details>\n> \n> <details>\n> <summary>📒 Files selected for processing (1)</summary>\n> \n> * `nix/devshells/flake-module.nix`\n> \n> </details>\n> \n> </details>\n\n<!-- end of auto-generated comment: rate limited by coderabbit.ai -->\n\n<!-- tips_start -->\n\n---\n\n\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->"},"request":{"retryCount":1,"signal":{}}},"response":{"url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","status":401,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","connection":"close","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Sat, 23 May 2026 15:05:39 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"github.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"81A1:11B40:B2D955C:2B0D0B02:6A11C243","x-xss-protection":"0"},"data":{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}}}

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":401,"request":{"method":"PATCH","url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- review_stack_entry_start -->\n\n[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/kalbasit/ncps/pull/1231?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)\n\n<!-- review_stack_entry_end -->\n<!-- This is an auto-generated comment: review in progress by coderabbit.ai -->\n\n> [!NOTE]\n> Currently processing new changes in this PR. This may take a few minutes, please wait...\n> \n> <details>\n> <summary>⚙️ Run configuration</summary>\n> \n> **Configuration used**: Organization UI\n> \n> **Review profile**: CHILL\n> \n> **Plan**: Pro\n> \n> **Run ID**: `92601640-828c-49ae-823a-2b4b89d6f483`\n> \n> </details>\n> \n> <details>\n> <summary>📥 Commits</summary>\n> \n> Reviewing files that changed from the base of the PR and between 38e498bbed0816107d71a1f189a6aa83b2e808e5 and d5db8208625238d88affde4876e0a1ba788886aa.\n> \n> </details>\n> \n> <details>\n> <summary>📒 Files selected for processing (1)</summary>\n> \n> * `nix/devshells/flake-module.nix`\n> \n> </details>\n> \n> ```ascii\n>  ________________________________________\n> < Your docs say 'TBD'. I'm here to 'Do'. >\n>  ----------------------------------------\n>   \\\n>    \\   \\\n>         \\ /\\\n>         ( )\n>       .( o ).\n> ```\n\n<!-- end of auto-generated comment: review in progress by coderabbit.ai -->\n\n<!-- tips_start -->\n\n---\n\n\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->\n<!-- internal state start -->\n\n\n<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcGsfBRIACgx4AA8ASi4AxAIAyFoBZmoSSAJU2BSlCXsMjw9+DA95SAMAOUcBSi4ARgAmAGZqyBKAVRsAGS5YXFxuRA4AegGidVhsAQ0mZgGAazQPATREdQGMBj6B7mw8gbrG5oMWxCrIOYWl9QOAZXxsCgYUgSo12B8/ALAQ0LBo2JIwBJJGhgAggjIHaDOUi4SBPTC+LhERBgKZsDC4ZF1AAMAA4wHVajjrrhqNh+vxuGQDu0VCQPOTlgAvbwADSuABpIGwKKQwDE0AwZgcAMIBZL0ahcWpY2oANjAWIArGBarVoFjqhxFViOFiAOwALSMABFpAwKPBuOJ8BgOAYoFk+ebLRiBhRsBgNNxZAByZCUigAM38zAA+gwvJhAuFIGTpJAAAaA5LxCj4bgJ1L4SDREgwrLxagqJbxyq4ADuJCpiAeGGc8HwiA09viiRT5aWPACEgbZKKOZIzHwUno8CwqMuOKxDAALGhqor0B4bURIOXRvYAI4eBjNqBwVC2Acxfzx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uoT+zUaYrkoDwKyIFJa63YiQDmGB6D4xhMIiQToLRWh9h6L0shMxxgRjCNIEYSCYAgmmbgeDCwkiOqWPMlZqy1nrI2NS5hd4eBoDxb2l5lGiABmki6FjHrcH8M3fgfAtgCBJgwSAjDxDSCMKUG000jDtDHPGc+dAuAAGocQDAVEYAAojETRi1C4pG7PAEgnc6JYM4JAAAsnQeAjgDBbw3kZUe48Y52IsfXJOTdU7aXTjmDuXcDLyBGsM4uagh7l1HtHXyNd0B13mgfXZLd9lt0fiSTaezEFlKwkKY+JzDlM1LH3IuKhLllxHpHAA2gAbw3s8UgataAbw4AisyJBQy1CUHQAQepZSdVqNUDe7IN5QXQqijeU8n6/3ngDJeQ4dpeEkWEElG9+QUFwE08gqLqgzlJbHblJBUVEtJQC5wshKUkJ4QmZBqD0EcPRNmTJACUlhOfh4QxwDQEeHAZAvAiAEwc2XEzVC6FKmhFFg5WIfdqHogRnYjq1AmEGIdZ+HhWDjF0zAI+eQN8IklkYJGDAkl4i7VNY6GsrjdLln8DMYmIVa4kRaigNYFseFBSQgEWgbo2KaJSGIxyTY2XDIAEK0xmFpZgotHrqElWi5c5YN4AF8AC6xgq6VM2fHJ5OyU6vLtdMpQnytoKB+RW45EqgXMzOf3C5pdh76CAA= -->\n\n<!-- internal state end -->"},"request":{"retryCount":1,"signal":{}}},"response":{"url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","status":401,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","connection":"close","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Sat, 23 May 2026 17:02:33 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"github.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"0486:26E031:BE6CEFF:2DE35711:6A11DDA9","x-xss-protection":"0"},"data":{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}}}

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{"name":"HttpError","status":401,"request":{"method":"PATCH","url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","headers":{"accept":"application/vnd.github.v3+json","user-agent":"octokit.js/0.0.0-development octokit-core.js/7.0.6 Node.js/24","authorization":"token [REDACTED]","content-type":"application/json; charset=utf-8"},"body":{"body":"<!-- This is an auto-generated comment: summarize by coderabbit.ai -->\n<!-- review_stack_entry_start -->\n\n[![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/kalbasit/ncps/pull/1231?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)\n\n<!-- review_stack_entry_end -->\nNo actionable comments were generated in the recent review. 🎉\n\n<details>\n<summary>ℹ️ Recent review info</summary>\n\n<details>\n<summary>⚙️ Run configuration</summary>\n\n**Configuration used**: Organization UI\n\n**Review profile**: CHILL\n\n**Plan**: Pro\n\n**Run ID**: `92601640-828c-49ae-823a-2b4b89d6f483`\n\n</details>\n\n<details>\n<summary>📥 Commits</summary>\n\nReviewing files that changed from the base of the PR and between 38e498bbed0816107d71a1f189a6aa83b2e808e5 and d5db8208625238d88affde4876e0a1ba788886aa.\n\n</details>\n\n<details>\n<summary>📒 Files selected for processing (1)</summary>\n\n* `nix/devshells/flake-module.nix`\n\n</details>\n\n</details>\n\n---\n<!-- walkthrough_start -->\n\n<details>\n<summary>📝 Walkthrough</summary>\n\n<!-- This is an auto-generated comment: release notes by coderabbit.ai -->\n\n## Summary by CodeRabbit\n\n* **Chores**\n  * Updated development environment configuration to support database management operations during local testing scenarios.\n\n<!-- end of auto-generated comment: release notes by coderabbit.ai -->\n## Walkthrough\n\nThe Nix devshell module's default configuration now includes `pkgs.dbmate` in `buildInputs` with inline documentation explaining its purpose for local database cleanup via `dev-scripts/run.py` and clarifying why it is not part of shared packages used by the docker-dev image.\n\n## Changes\n\n**Devshell dbmate integration**\n\n|Layer / File(s)|Summary|\n|---|---|\n|**Add dbmate to devshell with documentation** <br> `nix/devshells/flake-module.nix`|The buildInputs list in devShells.default now includes pkgs.dbmate, with comments explaining that dbmate is a local development tool excluded from shared dev-packages.nix (used by the docker-dev image) and is required by dev-scripts/run.py for cleaning and dropping dev databases between test scenarios.|\n\n## Estimated code review effort\n\n🎯 2 (Simple) | ⏱️ ~5 minutes\n\n## Poem\n\n> 🐰 A tiny dbmate joins the shell,\n> For databases we clean so well—\n> Dev scripts dance and databases fall,\n> Between scenarios, testing all!\n\n</details>\n\n<!-- walkthrough_end -->\n<!-- pre_merge_checks_walkthrough_start -->\n\n<details>\n<summary>🚥 Pre-merge checks | ✅ 5</summary>\n\n<details>\n<summary>✅ Passed checks (5 passed)</summary>\n\n|         Check name         | Status   | Explanation                                                                                                                                                     |\n| :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n|         Title check        | ✅ Passed | The title clearly summarizes the main change: restoring dbmate to the dev shell only, which matches the primary objective of the changeset.                     |\n|      Description check     | ✅ Passed | The description is directly related to the changeset, explaining why dbmate is being restored to the dev shell and its specific use case in dev-scripts/run.py. |\n|     Docstring Coverage     | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.                                                      |\n|     Linked Issues check    | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                                                        |\n| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request.                                                                                        |\n\n</details>\n\n<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>\n\n</details>\n\n<!-- pre_merge_checks_walkthrough_end -->\n<!-- tips_start -->\n\n---\n\n\n\n\n<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>\n\n<!-- tips_end -->\n<!-- internal state start -->\n\n\n<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcGsfBRIACgx4AA8ASi4AxAIAyFoBZmoSSAJU2BSlCXsMjw9+DA95SAMAOUcBSi4ARgAmAGZqyBKAVRsAGS5YXFxuRA4AegGidVhsAQ0mZgGAazQPATREdQGMBj6B7mw8gbrG5oMWxCrIOYWl9QOAZXxsCgYUgSo12B8/ALAQ0LBo2JIwBJJGhgAggjIHaDOUi4SBPTC+LhERBgKZsDC4ZF1AAMAA4wHVajjrrhqNh+vxuGQDu0VCQPOTlgAvbwADSuABpIGwKKQwDE0AwZgcAMIBZL0ahcWpY2oANjAWIArGBarVoFjqhxFViOFiAOwALSMABFpAwKPBuOJ8BgOAYoFk+ebLRiBhRsBgNNxZAByZCUigAM38zAA+gwvJhAuFIGTpJAAAaA5LxCj4bgJ1L4SDREgwrLxagqJbxyq4ADuJCpiAeGGc8HwiA09viiRT5aWPACEgbZKKOZIzHwUno8CwqMuOKxDAALGhqor0B4bURIOXRvYAI4eBjNqBwVC2Acxfzx5M0LPpTIkbKIXL5G1FPetoEpVBjmjoht1vLyGYkK1+DwfhA0gL4BkdbgBTmUgmy+SBAjvZw6DXDdcHBWh8EFSgARvFAklIGNMHocCoMFNBY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gjjD3XE0xUw0PXhWy0yL0ToAalwHyx7B3VoBI3UC0jYlRSxEBKPVhPhOOEROSFg02X0CAA=== -->\n\n<!-- internal state end -->"},"request":{"retryCount":1,"signal":{}}},"response":{"url":"https://api.github.com/repos/kalbasit/ncps/issues/comments/4521544817","status":401,"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","connection":"close","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Sat, 23 May 2026 17:03:03 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"github.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-media-type":"github.v3; format=json","x-github-request-id":"80DB:11B40:BD1218A:2D795FA4:6A11DDC6","x-xss-protection":"0"},"data":{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}}}

dev-scripts/run.py's perform_clean() uses `dbmate drop` to reset
dev databases between scenarios. dbmate was removed in 80c4a15
along with sqlc; restore it to the dev shell only — keep it out
of nix/dev-packages.nix (shared with the docker-dev image) and
nix/packages/ncps/default.nix. Runtime migration is still
`ncps migrate up` (embedded goose).
@codecov

codecov Bot commented May 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.50%. Comparing base (917f946) to head (78e2324).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1231   +/-   ##
=====================================
  Coverage   5.50%   5.50%           
=====================================
  Files          6       6           
  Lines        400     400           
=====================================
  Hits          22      22           
  Misses       374     374           
  Partials       4       4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

merge-stack size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant