From 867bd990afa3fb7c042a16250eb56494d796d859 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Sat, 21 Sep 2024 18:28:46 +0200 Subject: [PATCH 1/2] ci: swtich to ramsey composer action with matrix --- .github/workflows/pipeline.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 1e764e7..6372b46 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -4,6 +4,10 @@ on: pull_request jobs: pipeline: runs-on: ubuntu-latest + strategy: + matrix: + php: ['8.2', '8.3'] + dependencies: ['lowest', 'highest'] steps: - name: Checkout uses: actions/checkout@v4 @@ -11,14 +15,12 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.2' + php-version: ${{ matrix.php }} - - name: Cache Vendors - uses: actions/cache@v4 - id: cache-vendors + - name: Install Composer + uses: "ramsey/composer-install@v3" with: - path: vendor - key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }} + dependency-versions: "${{ matrix.dependencies }}" - name: Composer Validation run: composer validate --strict From a24a92deeb6dcbd27018c8ff7b1297dadeb25e4b Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Sat, 21 Sep 2024 18:34:38 +0200 Subject: [PATCH 2/2] fix: chroma store incompat with Symfony 6.4 uid --- src/Store/ChromaDb/Store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Store/ChromaDb/Store.php b/src/Store/ChromaDb/Store.php index 178732e..1e2a9a2 100644 --- a/src/Store/ChromaDb/Store.php +++ b/src/Store/ChromaDb/Store.php @@ -36,7 +36,7 @@ public function addDocuments(array $documents): void $this->logger->warning('Document {id} does not have a vector', ['id' => $document->id]); } - $ids[] = $document->id->toString(); + $ids[] = (string) $document->id; $vectors[] = $document->vector->getData(); $metadata[] = $document->metadata->getArrayCopy(); }