diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 652f8b30..fcfc18b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,22 +16,20 @@ jobs: tests: services: ydb: - image: cr.yandex/yc/yandex-docker-local-ydb:${{ matrix.ydb-versions }} + image: ydbplatform/local-ydb:${{ matrix.ydb-versions }} ports: - 2135:2135 - 2136:2136 - 8765:8765 volumes: - /tmp/ydb_certs:/ydb_certs - env: - YDB_USE_IN_MEMORY_PDISKS: true options: '-h localhost' runs-on: ubuntu-latest strategy: fail-fast: false matrix: php-versions: [ '7.2', '7.4', '8.0', '8.2' ] - ydb-versions: ['stable-22-5', 'trunk', '23.3', '23.2', '23.1'] + ydb-versions: ['24.4', '25.4', 'latest', 'edge', 'trunk'] steps: - uses: actions/checkout@v4 name: Checkout @@ -61,6 +59,14 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress + # SELECT version() exists from 24.3 (24.1 and older reject it); the value is not always + # numeric - e.g. `stable-25-4-1` on 25.4 and `main` on trunk - so compare it with care. + - name: Detect YDB version + run: | + version=$(docker exec $(docker ps --latest --quiet) /ydb -e grpc://localhost:2136 -d /local scripting yql -s "SELECT version() AS v" --format json-unicode | jq -r .v) + echo "YDB version: $version" + echo "YDB_VERSION=$version" >> "$GITHUB_ENV" + - name: Create YDB User run: docker exec $(docker ps --latest --quiet) /ydb -e grpc://localhost:2136 -d /local scripting yql -s "CREATE USER testuser PASSWORD 'testpassword'" diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d03215..bf56bb52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* CI: replaced the stale `cr.yandex/yc/yandex-docker-local-ydb` test image (numbered tags stop at 23.3, no `latest`) with the actively-maintained `ydbplatform/local-ydb` (used by the Go/Python/Java/.NET/Rust/Node.js SDKs); refreshed the version matrix to `['24.4', '25.4', 'latest', 'edge', 'trunk']`; the real server version (`SELECT version()`, available from 24.3) is exported to later CI steps as `YDB_VERSION` ## 1.16.3 * improve log