Skip to content

Conversation

Cammisuli
Copy link
Member

  • add retry mechanism for database operations
  • Add file locking to ensure safe creation of the database

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@Cammisuli Cammisuli requested review from a team, FrozenPandaz and vsavkin as code owners October 21, 2024 16:26
Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 6:46pm
Copy link
Contributor

Failed to publish a PR release of this pull request, triggered by @Cammisuli.
See the failed workflow run at: https://github.com/nrwl/nx/actions/runs/11444538300

Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-c9de3c0 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-c9de3c0
Release details 📑
Published version 0.0.0-pr-28544-c9de3c0
Triggered by @Cammisuli
Branch db-fixes
Commit c9de3c0
Workflow run 11444947125

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

- add retry mechanism for database operations
- Add file locking to ensure safe creation of the database
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-c61e456 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-c61e456
Release details 📑
Published version 0.0.0-pr-28544-c61e456
Triggered by @Cammisuli
Branch db-fixes
Commit c61e456
Workflow run 11446450617

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-73b1b41 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-73b1b41
Release details 📑
Published version 0.0.0-pr-28544-73b1b41
Triggered by @Cammisuli
Branch db-fixes
Commit 73b1b41
Workflow run 11447954743

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-cbd2dad my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-cbd2dad
Release details 📑
Published version 0.0.0-pr-28544-cbd2dad
Triggered by @Cammisuli
Branch db-fixes
Commit cbd2dad
Workflow run 11448761699

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-9f394f8 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-9f394f8
Release details 📑
Published version 0.0.0-pr-28544-9f394f8
Triggered by @Cammisuli
Branch db-fixes
Commit 9f394f8
Workflow run 11459756262

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

- Add `LockFile` struct for better lock file management
- Introduce `initialize_db` function for clearer DB initialization
- Move metadata table creation to a separate function
- Enhance error handling in connection and lock file operations
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-bc73507 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-bc73507
Release details 📑
Published version 0.0.0-pr-28544-bc73507
Triggered by @Cammisuli
Branch db-fixes
Commit bc73507
Workflow run 11462134448

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

- Update `query_row` to return `Result<Option<T>>` and improve error handling
- Ensure optional extension is used in `rusqlite` imports
- Adjust check for empty database version to handle `Ok(None)`
- Fix cache query and logging
- Correct tracing format and cache record existence check in cache module
- Add process tracing with `trace_span`
- Replace `debug` logs with more relevant `trace` logs
- Simplify `initialize_db` function by removing redundant `lock_file` parameter
- Ensure metadata table creation only if it does not exist
- Improve log messages for better traceability
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-8a4b7d1 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-8a4b7d1
Release details 📑
Published version 0.0.0-pr-28544-8a4b7d1
Triggered by @Cammisuli
Branch db-fixes
Commit 8a4b7d1
Workflow run 11463282566

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-28544-bc43ecf my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-28544-bc43ecf
Release details 📑
Published version 0.0.0-pr-28544-bc43ecf
Triggered by @Cammisuli
Branch db-fixes
Commit bc43ecf
Workflow run 11466615225

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@JamesHenry JamesHenry merged commit d3df76f into master Oct 23, 2024
6 checks passed
@JamesHenry JamesHenry deleted the db-fixes branch October 23, 2024 19:33
Cammisuli added a commit that referenced this pull request Oct 23, 2024
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants