35 Commits

Author SHA1 Message Date
Taddes
3cca75a9ba
feat: migrate code checks to github actions (#2005)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-postgres (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-spanner-python-utils (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-postgres-python-utils (push) Has been cancelled
Publish Sync docs to pages / build (push) Has been cancelled
Publish Sync docs to pages / deploy (push) Has been cancelled
feat: migrate code checks to github actions
2026-01-16 19:01:58 -05:00
Taddes
77868a3890
docs: sync api docs github (#1986)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-postgres (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-spanner-python-utils (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-postgres-python-utils (push) Has been cancelled
Publish Sync docs to pages / build (push) Has been cancelled
Publish Sync docs to pages / deploy (push) Has been cancelled
docs: sync api docs github
2026-01-09 10:38:46 -05:00
Taddes
8b72a3b8df
docs: build deploy docs GitHub pages (#1965)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Publish Sync docs to pages / build (push) Has been cancelled
Publish Sync docs to pages / deploy (push) Has been cancelled
build deploy docs GitHub pages
2025-12-30 13:26:01 -05:00
Barry Chen
7bf49d79a7
chore: use real exit codes for Postgres tests in CI (#1944)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
2025-12-19 14:56:33 -08:00
Barry Chen
6c6c06ffbe
chore: run Postgres tests and clippy in CI (#1923)
Update CircleCI config to run and test sync server on Postgres
2025-12-16 12:04:16 -08:00
Barry Chen
d5de9b149b
fix(tokenserver): use actual postgres post_user in release build 2025-11-03 14:25:52 -06:00
Barry Chen
30478687d7
chore(ci): configure CircleCI for postgres builds
This commit enables Postgres builds and tests in CircleCI.  Only
Tokenserver supports Postgres at the moment, and the Python based
integration tests have an implicit dependency on MySQL, so the CI jobs only
use Postgres where possible.

The jobs have been split up and named more explicitly.  The hope is to
simply delete the mysql jobs in the future.
2025-10-27 13:23:48 -05:00
Philip Jenvey
f2c7f94440
chore: allow overriding RUST_LOG (#1813)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
and bump the integration test timeout allowance
2025-09-22 13:20:44 -07:00
Philip Jenvey
ffade2f869
chore: more poetry usage (#1798)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Issue STOR-258
2025-09-10 16:52:43 -07:00
Taddes
8995db6268
feat: ruff for python lint and format (#1742)
Some checks are pending
Glean probe-scraper / glean-probe-scraper (push) Waiting to run
feat: ruff for python lint and format
2025-08-12 20:26:55 -04:00
Taddes
3e13096044
test: collect and report spanner tests (#1743)
Some checks are pending
Glean probe-scraper / glean-probe-scraper (push) Waiting to run
Collect and report Spanner tests
2025-08-12 14:16:05 -04:00
Taddes
77254b4a6e
refactor: python imports (#1730)
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
refactor: unified python imports for consistency in local, production, and test environments
2025-08-04 15:37:46 -04:00
Taddes
f8715d4e91
feat: use poetry for dependency management (#1706)
Some checks are pending
Glean probe-scraper / glean-probe-scraper (push) Waiting to run
feat: use poetry for dependency management
2025-07-28 21:48:46 -04:00
Taddes
0e3f7d162c
refactor: quiet dbg calls (#1701)
refactor: quiet dbg calls
2025-06-04 17:25:16 -04:00
Nick Shirley
6f15ad546d
test(e2e): run integration and e2e tests with pytest (#1697)
Some checks are pending
Glean probe-scraper / glean-probe-scraper (push) Waiting to run
- Update docker compose steps for mysql and spanner to use pytest
- Add infra and configuration for pytest to run tests
- Remove old "run.py" test setup

Closes STOR-235
2025-05-09 14:50:18 -06:00
Nick Shirley
15840c5ecf
chore: migrate tokenserver tests to pytest with junit output
* add pytest and script to make for running tests with pytest

* add conftest for pytest path handling

* move store test results to capture integration results

* remove unneeded run_tests and fix warnings about assert_()

Closes SYNC-4612
2025-03-17 22:36:42 -06:00
Nick Shirley
8c56cae890
chore: migrate unit tests to nextest and llvm-cov
* add nextest and llvm-cov for running unit tests. 
* test results and coverage output to store_test_results and store_artifacts. 
* upgrade build image and Docker Rust version 1.78.0 → 1.81.0

Closes SYNC-4611
2025-03-10 10:34:54 -06:00
Tarik Eshaq
1b11684648
feat: Puts pyo3 behind feature flag and derives tokens directly in Rust (#1513)
* Removes pyo3 and derives tokens directly in Rust

* Adds tests for JWT verifying

* Adds tests for token generation

* Adds metrics for oauth verify error cases

* Updates jsonwebtoken to not include default features (including pem loading)

* Adds context and logs errors during oauth verify

* Uses ring for cryptographic rng

* Adds back python impl under feature flag

* Uses one cached http client for reqwest
2024-02-12 11:14:15 -05:00
Tarik Eshaq
ef0fbfb9d7
docs: Minor improvements to onboarding docs (#1465) 2023-03-21 12:23:59 -07:00
Ethan Donowitz
b5b7e57f93
refactor: add database crates (#1407)
Closes #1277
2023-01-10 16:06:03 -05:00
Ethan Donowitz
0ae5fd2059
refactor: add settings crates (#1306)
This is a breaking change. This commit separates syncstorage and tokenserver settings into separate structs that are contained by a parent `Settings` struct. This means that any env vars that hold settings specific to syncstorage (e.g. `SYNC_DATABASE_URL`) have been renamed to `SYNC_SYNCSTORAGE__DATABASE_URL`. Any settings that were moved from the top-level `Settings` struct to the lower level, syncstorage-specific struct will now have a `SYNC_SYNCSTORAGE__` prefix instead of a `SYNC_` prefix.

Closes #1276
2022-10-19 17:15:56 -04:00
Ethan Donowitz
1a197a6c6e
feat: don't run Tokenserver migrations on startup (#1286) 2022-04-25 13:47:34 -04:00
Ethan Donowitz
38d6a27b02
feat: add BrowserID support for Tokenserver (#1216)
Closes #1215
2022-03-31 15:13:04 -04:00
Ethan Donowitz
291a40eaa4
chore: add Python build to Makefile (#1244)
Closes #1226
2022-03-16 14:11:33 -04:00
Ethan Donowitz
cbeebf465a
fix: move I/O calls to blocking threadpool (#1190)
Closes #1188
2021-12-21 12:34:04 -05:00
Ethan Donowitz
aa18c1a01d
test: add Tokenserver integration tests to CI (#1180)
Closes #1174
2021-12-08 08:56:16 -05:00
Ethan Donowitz
503d1aa81b
refactor: Tokenserver: Add mature MySQL adapter (#1119)
Closes #1054
2021-07-29 15:35:59 -07:00
Ethan Donowitz
e6ec1acd87
feat: Integrate Spanner emulator with CI (#1079)
Closes #566
2021-05-19 18:20:25 -04:00
Philip Jenvey
f699085363
test: move db-tests back into the main crate (#465)
* test: move db-tests back into the main crate
* test: fixup db tests imports and remove db-test crate remnants
* test: kill the no longer needed db_test feature

Closes #410
2020-03-02 21:49:43 -08:00
Rachel Tublitz
bfd0ba7e85
task: minor tweaks to makefile 2020-01-06 12:57:53 -05:00
Rachel Tublitz
f4485f15c6
docs: update spanner examples
closes #396
2020-01-03 17:41:22 -05:00
Rachel Tublitz
e1f48b48c8
chore: add python to docker image
also upgrading to rust 1.40.0 and adding a few details to docs for running via docker

closes: #384
2020-01-02 12:28:30 -05:00
Rachel Tublitz
80b0c591f3
chore: adjust sample script so it works and adding docs to link to it 2019-12-05 17:04:46 -05:00
Rachel Tublitz
11e4754558
chore: fix syntax and make one small formatting change to PR template
Closes #344
2019-11-21 16:32:29 -05:00
Rachel Tublitz
bbe744ddba
docs: adjust PR template, finish combining READMEs
adding makefile with example ENV vars to work alongside example config values

Closes #344
2019-11-21 16:20:57 -05:00