Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ else
fi

# Install cargo-pgrx
echo "Installing cargo-pgrx 0.16.1..."
echo "Installing cargo-pgrx 0.20.1..."
if [ "$SMOKE_MODE" = "1" ]; then
echo "Smoke mode: skipping cargo-pgrx install"
else
cargo install cargo-pgrx --version 0.16.1 --locked
cargo install cargo-pgrx --version 0.20.1 --locked
fi

# Initialize pgrx with PostgreSQL 17 (pgrx will download and compile PG17)
Expand Down
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ For Guarantee A, treat the upgrade path as the contract for already-shipped vers

## Dependencies

- **pgrx 0.16.1**: PostgreSQL extension framework (pinned version)
- **pgrx 0.20.1**: PostgreSQL extension framework (pinned version)
- **duroxide**: Durable execution runtime (crates.io dependency pinned in [`Cargo.toml`](../Cargo.toml))
- **duroxide-pg**: duroxide provider/stores engine state in PostgreSQL (crates.io dependency pinned in [`Cargo.toml`](../Cargo.toml)); keep pinned with `duroxide` as a compatible pair
- **sqlx**: Async PostgreSQL from background worker
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
options:
- '17'
- '18'
- '17, 18'
- '19'
- '17, 18, 19'

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
- name: Install PostgreSQL and cargo-pgrx
run: |
brew install postgresql@17
cargo install cargo-pgrx --version 0.16.1 --locked
cargo install cargo-pgrx --version 0.20.1 --locked
PG_CONFIG="$(brew --prefix postgresql@17)/bin/pg_config"
cargo pgrx init --pg17 "$PG_CONFIG"
echo "PG_CONFIG=$PG_CONFIG" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -181,12 +182,12 @@ jobs:
echo 'pg_versions=[${{ github.event.inputs.pg_version }}]' >> "$GITHUB_OUTPUT"
elif [ "${{ github.event_name }}" = "pull_request" ]; then
if [ "${{ contains(github.event.pull_request.labels.*.name, 'test-pg18') }}" = "true" ]; then
echo 'pg_versions=[17, 18]' >> "$GITHUB_OUTPUT"
echo 'pg_versions=[17, 18, 19]' >> "$GITHUB_OUTPUT"
else
echo 'pg_versions=[17]' >> "$GITHUB_OUTPUT"
fi
else
echo 'pg_versions=[17, 18]' >> "$GITHUB_OUTPUT"
echo 'pg_versions=[17, 18, 19]' >> "$GITHUB_OUTPUT"
fi

test:
Expand All @@ -199,8 +200,8 @@ jobs:
fail-fast: false
matrix:
pg_version: ${{ fromJson(needs.prepare.outputs.pg_versions) }}
# PG18 failures are non-blocking while compatibility is being established
continue-on-error: ${{ matrix.pg_version == 18 }}
# PG18 and PG19 failures are non-blocking while compatibility is being established
continue-on-error: ${{ matrix.pg_version >= 18 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -242,7 +243,7 @@ jobs:
path: |
~/.cargo/.crates2.json
~/.cargo/bin/cargo-pgrx
key: ${{ runner.os }}-cargo-pgrx-0.16.1-v1
key: ${{ runner.os }}-cargo-pgrx-0.20.1-v1

- name: Cache Cargo dependency sources
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand Down Expand Up @@ -272,10 +273,10 @@ jobs:

- name: Install cargo-pgrx
run: |
if ! command -v cargo-pgrx &> /dev/null || ! cargo pgrx --version | grep -q "0.16.1"; then
cargo install cargo-pgrx --version 0.16.1 --locked
if ! command -v cargo-pgrx &> /dev/null || ! cargo pgrx --version | grep -q "0.20.1"; then
cargo install cargo-pgrx --version 0.20.1 --locked
else
echo "cargo-pgrx 0.16.1 already installed, skipping"
echo "cargo-pgrx 0.20.1 already installed, skipping"
fi

- name: Initialize pgrx
Expand Down Expand Up @@ -353,7 +354,7 @@ jobs:
if: steps.pg_regress.outcome != 'skipped'
run: ./scripts/pg-stop.sh --pg-version ${{ matrix.pg_version }}

# cargo-pgrx 0.16.1 does not expose --locked for its build/test commands.
# cargo-pgrx 0.20.1 does not expose --locked for its build/test commands.
- name: Verify Cargo lockfile is unchanged
if: always()
run: git diff --exit-code HEAD -- Cargo.lock
10 changes: 5 additions & 5 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
path: |
~/.cargo/.crates2.json
~/.cargo/bin/cargo-pgrx
key: ${{ runner.os }}-copilot-setup-cargo-pgrx-0.16.1-v1
key: ${{ runner.os }}-copilot-setup-cargo-pgrx-0.20.1-v1

- name: Cache Cargo dependency sources
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand All @@ -71,14 +71,14 @@ jobs:
~/.pgrx/config.toml
~/.pgrx/17.*
~/.pgrx/18.*
key: ${{ runner.os }}-copilot-setup-pgrx-0.16.1-pg17-18-v1
key: ${{ runner.os }}-copilot-setup-pgrx-0.20.1-pg17-18-v1

- name: Install cargo-pgrx
run: |
if ! command -v cargo-pgrx &> /dev/null || ! cargo pgrx --version | grep -q "0.16.1"; then
cargo install cargo-pgrx --version 0.16.1 --locked
if ! command -v cargo-pgrx &> /dev/null || ! cargo pgrx --version | grep -q "0.20.1"; then
cargo install cargo-pgrx --version 0.20.1 --locked
else
echo "cargo-pgrx 0.16.1 already installed, skipping"
echo "cargo-pgrx 0.20.1 already installed, skipping"
fi

- name: Initialize pgrx (PostgreSQL 17 and 18)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ permissions:
env:
CARGO_TERM_COLOR: always
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
CARGO_PGRX_VERSION: 0.16.1
CARGO_PGRX_VERSION: 0.20.1

concurrency:
group: package-release-${{ inputs.tag || github.ref }}
Expand Down
Loading