-
Notifications
You must be signed in to change notification settings - Fork 407
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
Allow building without PostgreSQL or SQLite backend #3803
Allow building without PostgreSQL or SQLite backend #3803
Conversation
@anunayasri please click the CLA button in the comment above |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3803 +/- ##
==========================================
- Coverage 76.35% 70.37% -5.98%
==========================================
Files 315 315
Lines 23540 23540
==========================================
- Hits 17973 16566 -1407
- Misses 4528 5872 +1344
- Partials 1039 1102 +63
... and 61 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Well, build tags look good, but we need to update the test
Why do you think so? |
@AlekSi I see my mistake. The tests were fixed recently but I didn't take the pull. I have fixed the tests. Please have a look. |
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
35d386a
to
366a642
Compare
Lines 362 to 364 in ced8ce0
|
Description
Requirement: We should allow building FerretDB without PostgreSQL and/or SQLite backend with
ferretdb_no_postgresql
andferretdb_no_sqlite
build tags. Both should be absent in official builds.I have added the relevant build tags in postgres & sqlite handler and registry files. The corresponding test
TestDeps
is skipped in themain
branch. I have added placeholders for testing the above build tag changes. We can fix these once theTestDeps
is fixed.Testing Strategy
BUILD_TAGS
inTaskfile.yml
.task build-host
.bin/ferretdb -h
.Test Results
Build tags given
Postgres handler is absent.
Build tags given
Sqlite handler is absent.
Closes #3629
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.