Skip to content
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

chore(deps): update xo/dburl to v0.20.0 #2533

Merged
merged 4 commits into from
Dec 13, 2023
Merged

chore(deps): update xo/dburl to v0.20.0 #2533

merged 4 commits into from
Dec 13, 2023

Conversation

GeorgeMac
Copy link
Member

@GeorgeMac GeorgeMac commented Dec 13, 2023

Closes #2526

This updates xo/dburl to the latest version. There were issues with the last version, which we discussed in the xo/dburl repository. This newer version has a package level boolean which allows us to get the old behaviour we depended upon.

See: xo/dburl#35 (comment)

Update: Using the suggested dburl.ResolveSchemeType = false just made things worse.
This caused all the flavours of file:/ prefixed DB URLs to return "unknown extension".

Instead, I took the other approach mentioned, which was to override dburl.Stat.
The version we supply to dburl now actually just sinks not found errors (this is what causes dburl to go on a hunt for the existence of parent directories). By returning a nil error and a fs.FileInfo that is neither a directory, nor a socket, it instead forces dburl to attempt to move on an open the file path (via OpenFile this time). If the file exists, it checks the files header bytes for sqlite, if it doesn't exist, it uses the files extension.

Copy link
Contributor

github-actions bot commented Dec 13, 2023

Uffizzi Preview deployment-42732 was deleted.

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (253d460) 70.87% compared to head (6ee376d) 70.85%.

Files Patch % Lines
internal/storage/sql/file.go 33.33% 8 Missing ⚠️
internal/storage/sql/db.go 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2533      +/-   ##
==========================================
- Coverage   70.87%   70.85%   -0.03%     
==========================================
  Files          81       82       +1     
  Lines        8168     8193      +25     
==========================================
+ Hits         5789     5805      +16     
- Misses       2033     2042       +9     
  Partials      346      346              

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

@markphelps markphelps added the automerge Used by Kodiak bot to automerge PRs label Dec 13, 2023
@kodiakhq kodiakhq bot merged commit afe7632 into main Dec 13, 2023
29 of 31 checks passed
@kodiakhq kodiakhq bot deleted the gm/upgrade-xo-dburl branch December 13, 2023 13:59
markphelps added a commit that referenced this pull request Dec 17, 2023
…it/v5-5.11.0

* main: (31 commits)
  fix: resolved issues with go-git 5.11.0 (#2543)
  chore: Devenv (#2542)
  refactor(storage/fs): adjust the declarative storage abstractions (#2540)
  chore(readme): update readme with client-side eval info (#2539)
  chore(deps): bump cuelang.org/go from 0.6.0 to 0.7.0 (#2523)
  refactor: use rpc/flipt.Now everywhere instead of timestamppb.Now
  feat(rpc/flipt): add Now timestamp with microsecond precision function
  fix(mysql): increase timestamp precision from seconds to microseconds
  fix(build): create new db instance per api IT
  fix(cfg): default config outputs first INFO log regardless of FLIPT_LOG_LEVEL (#2536)
  feat(ui): show time/date format on settings/preferences page (#2537)
  fix(mod): update dagger in correct go.mod (build)
  chore(github): update DAGGER_VERSION to 0.9.4
  chore: cleanup go work sum
  chore(build): update dagger to v0.9.4
  fix(build/testing): use correct db url environment variable
  test: move database coverage into integration tests
  chore(deps): update xo/dburl to v0.20.0 (#2533)
  chore: update readme
  chore: update README
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Used by Kodiak bot to automerge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants