Commit Graph

60 Commits

Author SHA1 Message Date
lovasoa d8e6a280fc Update CI configuration to use a shared cache key for Rust builds and adjust cache saving conditions. The shared key is now set to 'rust-sqlpage-proj-test' for both main and test branches, with the test branch cache saving disabled. 2025-11-08 01:25:39 +01:00
Ophir LOJKINE 2e2c5e9c41 Fix github pr ci cache warnings (#1086)
* feat: Add shared-key to cargo cache action

Co-authored-by: contact <contact@ophir.dev>

* Refactor: Use matrix-specific cache key in CI

Co-authored-by: contact <contact@ophir.dev>

* feat: Cache Rust build artifacts only on main branch

Co-authored-by: contact <contact@ophir.dev>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-11-07 22:00:52 +01:00
lovasoa 4dba824727 Enhance ODBC support for Debian-based systems by setting the library search path in build.rs. Update CI configuration to use the correct PostgreSQL driver name. Document changes in CHANGELOG.md. 2025-10-27 14:56:17 +01:00
lovasoa be5eb4cd06 fix odbc memory corruption
make it harder to miss such issues in the future thanks to malloc instrumentation on ci

fixes https://github.com/pacman82/odbc-api/issues/793
2025-10-25 01:21:13 +02:00
lovasoa 2f37d2ddd1 add lambda-web feature and update CI to test with odbc-static
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (postgres, odbc, Driver=/usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been cancelled
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (.exe, , windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (odbc-static, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
Create Release / Build sqlpage binaries (Linux) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
2025-10-04 23:18:35 +02:00
lovasoa 6ceeb81ccb test with static odbc 2025-10-04 20:36:09 +02:00
lovasoa a7ff6d6c12 Update ODBC dependency configuration and CI workflow to use all features 2025-10-04 20:23:42 +02:00
lovasoa 5fb17c65d0 update driver path 2025-10-04 00:25:52 +02:00
lovasoa 3bb75133ea update driver path 2025-10-04 00:25:26 +02:00
lovasoa 8b858015a8 Update PostgreSQL ODBC driver configuration in CI workflow 2025-10-04 00:18:33 +02:00
lovasoa 95315f68e1 Update ODBC driver configuration in CI and docker-compose for PostgreSQL 2025-10-03 23:52:23 +02:00
lovasoa 515005cac7 truly static iodbc link 2025-10-03 22:50:22 +02:00
Ophir LOJKINE 625deb973b Add and document sqlpage.hmac function (#1033)
* feat: Add sqlpage.hmac function for cryptographic signing

Co-authored-by: contact <contact@ophir.dev>

* feat: Add sqlpage.hmac function for secure data signing

Co-authored-by: contact <contact@ophir.dev>

* Test HMAC function with RFC vectors and update tests

Co-authored-by: contact <contact@ophir.dev>

* feat: Add sqlpage.hmac() function for secure signatures

Co-authored-by: contact <contact@ophir.dev>

* feat: Add base64 output option to hmac function

Co-authored-by: contact <contact@ophir.dev>

* Refactor hmac function for cleaner output formatting

Co-authored-by: contact <contact@ophir.dev>

* Add webhook HMAC signature validation tests

Co-authored-by: contact <contact@ophir.dev>

* Refactor HMAC function and update SQL examples for clarity and consistency

- Changed function parameters to remove Option types for data and key in the HMAC function.
- Improved SQL documentation and examples for HMAC usage, including clearer descriptions and updated error handling.
- Enhanced test cases for webhook HMAC validation to ensure accurate signature checks and responses.
- Removed obsolete test file for HMAC with null values.

* Update HMAC validation logic to handle NULL values in SQL queries

- Modified conditions in SQL queries to check for NULL values alongside signature mismatches.
- Enhanced documentation on NULL handling for HMAC checks to improve clarity and portability.

* remove debug logging from ci

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-01 21:07:36 +02:00
Cursor Agent 70f3473f15 Fix: Update ODBC driver and ensure /lib64 exists
Co-authored-by: contact <contact@ophir.dev>
2025-09-26 16:21:42 +02:00
lovasoa a76965cd39 Update docker-compose and README for ODBC support; enhance CI workflow to include ODBC testing 2025-09-26 16:21:42 +02:00
lovasoa c131aea909 Add ODBC dependencies installation step in CI workflow for enhanced database support 2025-09-26 16:21:42 +02:00
lovasoa bbb0210ec8 Enhance Dockerfile and CI workflows by adding ODBC dependencies for improved database support 2025-09-26 16:21:42 +02:00
lovasoa 5e34f29bad clippy in ci 2025-05-25 23:23:49 +02:00
lovasoa 0545ab3a3b update rust cache gha 2025-05-21 23:58:50 +02:00
lovasoa 68fb7dc9de add a timeout to each individual request in tests 2024-12-30 21:26:05 +01:00
lovasoa 756c023574 run db tests in parallel with compile and lint 2024-12-30 20:51:11 +01:00
lovasoa 352d1d9131 no nightly on ci 2024-12-30 20:49:11 +01:00
lovasoa 9a16117d17 limit and report test times 2024-12-30 20:42:21 +01:00
lovasoa 285ea71bb5 add a test timeout 2024-12-30 20:28:34 +01:00
lovasoa 1dc6da9620 update Swatinem/rust-cache 2024-12-21 00:55:41 +01:00
lovasoa 15dada8de3 fix docker image references 2024-12-07 21:14:13 +01:00
lovasoa bdf692c61f lower repo name 2024-12-06 23:02:49 +01:00
lovasoa 0d51d52393 not on a personal repo anymore 2024-12-06 21:42:55 +01:00
lovasoa 741f479cd3 add package json 2024-11-11 19:41:40 +01:00
lovasoa ebf19aa7fe add linting and formatting in CI 2024-11-05 18:33:55 +01:00
lovasoa cf9812ca90 upload linux test builds 2024-10-05 20:28:50 +02:00
lovasoa 9c8e8120e4 debug port use in windows ci 2024-06-27 01:05:54 +02:00
Ophir LOJKINE f643eaf5c2 Merge pull request #394 from lovasoa/function_post_result
function post result
2024-06-26 22:54:26 +00:00
lovasoa e7970ad18d check windows port usage on ci 2024-06-26 22:56:34 +02:00
lovasoa 12efca6aa9 WIP delayed function execution 2024-06-24 23:38:10 +02:00
lovasoa c6f3fea8ee run ci with backtrace activated 2024-06-23 16:14:07 +02:00
lovasoa 370987c98c set artefact name 2024-06-16 13:48:55 +02:00
lovasoa 4f35227a80 reformat ci yaml files 2024-06-16 13:43:06 +02:00
lovasoa 35e0377698 upload windows binary to github artifacts 2024-06-16 13:42:16 +02:00
lovasoa 2f253b9e92 show logs on failed database start 2024-05-04 14:54:58 +02:00
lovasoa 26aa58cae0 wait longer until postgres starts on ci 2024-05-04 14:45:32 +02:00
lovasoa f6cae41a47 update CI dependencies 2024-01-30 16:07:12 +01:00
lovasoa f7b8f7774a update actions/checkoutto v4 2024-01-30 14:51:18 +01:00
lovasoa 72c3aca6df test concurrent requests 2024-01-30 14:42:51 +01:00
lovasoa 692399f147 gha syntax fix 2023-11-03 00:26:41 +01:00
lovasoa 9119cd87cb skip uploads on pr 2023-11-02 23:48:08 +01:00
lovasoa 3d611ce7bb don't save cache on prs 2023-11-02 23:39:58 +01:00
lovasoa 474aed99cf avoid docker push on pull requests 2023-11-02 23:30:53 +01:00
lovasoa e22e390572 fix suffix 2023-10-08 23:51:20 +02:00
lovasoa b60c5b6748 docker tag intermediate platform-specific images 2023-10-08 23:50:48 +02:00