4224 Commits

Author SHA1 Message Date
Kishore Nallan
04f61c5609 Fix arch for RPM build.
Some checks failed
tests / test (push) Has been cancelled
tests / integration-tests (push) Has been cancelled
Benchmark Testing / benchmark-testing (push) Has been cancelled
v28.0
2025-02-14 13:12:07 +05:30
Jason Bosco
3b868d5c28
Merge pull request #2194 from tharropoulos/benchmark-cli-v28
Benchmark CLI for v28
2025-02-12 10:15:11 -06:00
Kishore Nallan
2e5d5d77cd Reset snapshot progress flag for timed snapshots. 2025-02-12 18:43:29 +05:30
Harpreet Sangar
36b4d9f119
Fix join export bug. (#2196) 2025-02-12 18:43:24 +05:30
Fanis Tharropoulos
a356df0526
feat(tests): add conversation model rotation tests
- Add `conversationRotationTest` method to test model replication
- Add `restartProcessWithVerification` helper to validate model state
- Update `restartAllNodes` to use proper cleanup sequence
- Add rotation verification tests to main test sequence
- Fix cleanup and process disposal timing in restart flow
2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
61f5bd21e3
fix(benchmark): resolve process event listener memory leak
- Move process cleanup to global handler in `TypesenseProcessManager`
- Add `dispose` method to `TypesenseProcessController` for proper cleanup
- Remove redundant event listeners and cleanup calls
- Add dynamic max listeners adjustment to prevent warnings
- Extract process args building to separate method
2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
8c0aa8d947
refactor(tests): instantiate new ora object for spinners on concurrent runs 2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
60208b6f4a
style: add a line of whitespace between tests 2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
43ffe0437c
fix(tests): resolve history_collection missing from the convo model type 2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
feca942ea1
fix(process-manager): resolve type definition problem with older ts-js versions 2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
56c25a39b9
chore: bump typesense-js dependency to 2.0.0-15 2025-02-12 11:01:00 +02:00
Fanis Tharropoulos
e7af115755
ci: remove OpenAI key secret from tests 2025-02-12 11:00:59 +02:00
Fanis Tharropoulos
0081c025a6
fix: uncomment snapshot tests 2025-02-12 11:00:59 +02:00
Fanis Tharropoulos
6796993aeb
feat(tests): integrate OpenAI proxy for embedding tests
- add proxy service setup and teardown in integration tests
- configure embedding dimensions through command line option
- set up HTTP/HTTPS proxy environment in typesense process
- refactor test flow to include proxy lifecycle management
- replace timeout calls with `delay` utility function
2025-02-12 11:00:59 +02:00
Fanis Tharropoulos
80a1ba8136
feat: add OpenAI API mock service
- add proxy server to intercept OpenAI API requests
- implement mock responses for models, chat, and embeddings endpoints
- add self-signed certificate generation for HTTPS support
- include request forwarding for non-OpenAI endpoints
2025-02-12 11:00:59 +02:00
Fanis Tharropoulos
e4280e1768
refactor(benchmark): move delay function to utils module
- move `delay` function from `benchmark.ts` to `execa.ts` for reusability
- update `benchmark.ts` to use imported `delay` function
- add `delay` to exports in `execa.ts`
2025-02-12 11:00:59 +02:00
Jason Bosco
30751b5acf
Fix RPM naming when artifact suffix is used 2025-02-11 23:27:00 -06:00
Jason Bosco
01e45ba736
Support for adding artifact suffix in DEB and RPM packages 2025-02-11 18:36:45 -06:00
Jason Bosco
442144bea6
Use new artifact name for gpu dependencies as well for lg-page16 2025-02-11 18:17:38 -06:00
Jason Bosco
8def5d8efb
Use distinct name for lg-page16 2025-02-11 18:08:46 -06:00
Kishore Nallan
d673e5ce74 Disable iconv on archive build. 2025-02-11 21:38:00 +05:30
Jason Bosco
8b97e1f1fc
Switch back to pull_request in GitHub actions, since with pull_request_target the PR base is what is checked out in GitHub actions
Some checks failed
tests / test (push) Has been cancelled
Benchmark Testing / benchmark-testing (push) Has been cancelled
tests / integration-tests (push) Has been cancelled
Context: https://github.com/getsentry/sentry/issues/22432
2025-02-10 22:48:46 -06:00
Jason Bosco
b8b46f5522
Use v4 of checkout action
Some checks are pending
tests / test (push) Waiting to run
tests / integration-tests (push) Blocked by required conditions
2025-02-10 11:57:42 -06:00
Jason Bosco
ac48d688d4
Merge pull request #2184 from typesense/docker-based-macos-devenv
Some checks failed
tests / test (push) Has been cancelled
tests / integration-tests (push) Has been cancelled
Add docker-based dev env for macOS Apple Silicon
2025-02-09 00:35:33 -06:00
Jason Bosco
24f1e54953
Merge branch 'v28' of github.com:typesense/typesense into v28 2025-02-09 00:20:05 -06:00
Jason Bosco
ac7f78193e
Docker-based dev env for macos 2025-02-09 00:18:55 -06:00
Jason Bosco
f313af0997
Merge pull request #2178 from tharropoulos/benchmark-cli
Some checks failed
tests / test (push) Has been cancelled
tests / integration-tests (push) Has been cancelled
Cleanup data directories between integration tests
2025-02-07 17:27:38 -06:00
Fanis Tharropoulos
560cd73140
fix(benchmark): don't check for the last hour of indexing benchmarks 2025-02-07 12:15:12 +02:00
Fanis Tharropoulos
10cfec3c39
feat(benchmark): warn when a benchmark isn't complete 2025-02-07 12:14:55 +02:00
Fanis Tharropoulos
ff5bd1fa92
fix(benchmark): display results for indexing benchmark as well 2025-02-07 12:12:40 +02:00
Fanis
e476eef625
fix(stemmer): always return dictionaries array even when empty (#2182)
Some checks failed
tests / test (push) Has been cancelled
tests / integration-tests (push) Has been cancelled
- remove check for `!stem_dictionaries.empty()` to always return array
- add test case for empty stemming dictionary
2025-02-06 21:24:36 +05:30
Fanis Tharropoulos
4379a5d634
fix: uncomment conversation test execution 2025-02-06 10:49:53 +02:00
Fanis Tharropoulos
bc7a91c65c
tests: cleanup data directories between tests 2025-02-06 10:47:32 +02:00
Fanis Tharropoulos
49a8d7cdf4
build: add dockerfile for building typesense versions 2025-02-06 10:47:09 +02:00
Kishore Nallan
a807036d82 Update ci build script to configure jemalloc page size.
Some checks are pending
tests / test (push) Waiting to run
tests / integration-tests (push) Blocked by required conditions
2025-02-06 12:14:43 +05:30
Jason Bosco
446897b013
Merge pull request #2174 from tharropoulos/benchmark-cli
fix(k6): increase k6 timeout to 5m
2025-02-05 08:53:22 -06:00
Fanis Tharropoulos
95a9144f27
fix(k6): increase k6 timeout to 5m 2025-02-05 10:32:39 +02:00
Kishore Nallan
850c1a5c8b Enable jemalloc lg-page=16 only when defined. 2025-02-04 12:56:47 +05:30
Jason Bosco
f51daeb5d2
Merge pull request #2136 from tharropoulos/benchmark-cli
Add CLI Tool for Typesense Benchmarking and Testing
2025-02-03 20:10:27 -06:00
Fanis Tharropoulos
d730f85ed3
ci: update job triggers 2025-02-03 13:17:32 +02:00
Fanis Tharropoulos
cb846534eb
ci: update job triggers 2025-02-03 13:14:09 +02:00
Fanis Tharropoulos
e29dbb10db
fix(process): handle sigterm error in cleanup method gracefully
- add try/catch block to handle expected termination signals
- increase sigkill timeout from 5s to 20s for more graceful shutdown
- add error handling for sigterm/sigkill signals to prevent exceptions
2025-02-03 10:29:23 +02:00
Krunal Gandhi
4596b95744
Schema change status history (#2161)
Some checks failed
tests / test (push) Has been cancelled
* display last 5 alter operation status

* update status json
2025-02-01 11:05:29 +05:30
Harpreet Sangar
9f5700d5c1
Refactor Union sorting (#2165)
* When only one sort field is specified, add `union_search_index` and `seq_id` to the `scores` array.

* Fix direct leaks.

* Uncomment test.
2025-02-01 11:05:05 +05:30
Jason Bosco
dc4d9a99b0
Trigger CI 2025-01-31 13:32:00 -06:00
Fanis Tharropoulos
b2f38ff551
ci: change workflow run to pull request target
- gives access to env secrets to pull request runs
2025-01-31 20:29:46 +02:00
Fanis
524095c3e6
Merge branch 'v28' into benchmark-cli 2025-01-31 10:32:34 +02:00
Fanis Tharropoulos
ad686c1952
ci: bump upload / download artifact actions to v4 2025-01-30 18:26:04 +02:00
Fanis Tharropoulos
7452141d13
feat(benchmark): add config file support and per-scenario failure thresholds
- Add `loadConfig` function to load benchmark config from file
- Define `BenchmarkConfig` type and default config with failure thresholds per scenario
- Update `Benchmarks` class to use per-scenario failure thresholds from config
- Enhance result formatting to display scenario name, VUs, and failure threshold
- Add `--config` CLI option to specify path to config file
- Update parsing of CLI options to merge loaded config
- Refactor result processing to use separate maps for scenario and VUs
- Minor formatting and type improvements
2025-01-30 18:22:09 +02:00
Fanis Tharropoulos
29ee17e34e
refactor(search): move search scenarios to k6-utils module
- Move the `searchScenarios` array from `search.ts` to `k6-utils.ts`
- Update the `Scenario` type to use `Omit` and `&` for better type safety
- Use `satisfies` operator to ensure `searchScenarios` matches `Scenario[]` type
- Update import statements in `search.ts` to import `searchScenarios` from `k6-utils.ts`
- Remove unused `Options` interface from `search.ts`
2025-01-30 18:07:15 +02:00