-
Notifications
You must be signed in to change notification settings - Fork 0
Update to duroxide 0.1.7 with activity cancellation support #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
10
commits into
main
Choose a base branch
from
copilot/update-duroxide-pg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
739ee34
Initial plan
Copilot 1c51c35
Update duroxide-pg to duroxide 0.1.7 with activity cancellation support
Copilot 8a3f89a
Fix compilation errors in stress tests and basic tests
Copilot 2af7f26
Address code review feedback: improve logging for cancelled activities
Copilot a59a1f9
Remove unnecessary clone and reference in ack_work_item
Copilot 955a131
chore: initialize fresh branch
Copilot 9657f36
ci: add GitHub Actions workflow for automated testing
Copilot 63a298e
test: add 9 new cancellation validation tests from duroxide 0.1.7
Copilot fbd9df2
chore: trigger CI
f26ad57
ci: add workflow_dispatch for manual triggering
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: Tests | ||
|
|
||
| # Runs cargo tests on pull requests | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run Cargo Tests | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| services: | ||
| postgres: | ||
| image: postgres:15 | ||
| env: | ||
| POSTGRES_PASSWORD: postgres | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_DB: duroxide_test | ||
| options: >- | ||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| ports: | ||
| - 5432:5432 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Cache cargo registry | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.cargo/registry | ||
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-registry- | ||
|
|
||
| - name: Cache cargo index | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.cargo/git | ||
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-index- | ||
|
|
||
| - name: Cache cargo build | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: target | ||
| key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-build-target- | ||
|
|
||
| - name: Run tests | ||
| env: | ||
| # Use the PostgreSQL service container for CI tests | ||
| DATABASE_URL: postgres://postgres:postgres@localhost:5432/duroxide_test | ||
| run: cargo test --verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Fresh branch | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file. | |||||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||||||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||||||
|
|
||||||
| ## [0.1.9] - 2025-12-28 | ||||||
|
|
||||||
| ### Changed | ||||||
|
|
||||||
| - **BREAKING:** Updated to duroxide 0.1.7 with activity cancellation support | ||||||
| - `fetch_work_item` now returns 4-tuple: `(WorkItem, String, u32, ExecutionState)` | ||||||
| - `renew_work_item_lock` now returns `ExecutionState` instead of `()` | ||||||
| - `ack_work_item` now accepts `Option<WorkItem>` to support cancelled activities | ||||||
|
|
||||||
| ### Added | ||||||
|
|
||||||
| - New migration `0007_add_execution_state_to_work_items.sql` - updates stored procedures to return ExecutionState | ||||||
| - ExecutionState tracking for work items enables cooperative activity cancellation | ||||||
| - Support for `ExecutionState::Running`, `ExecutionState::Terminal`, and `ExecutionState::Missing` | ||||||
|
|
||||||
| ### Notes | ||||||
|
|
||||||
| - Total validation tests: 88 (up from 75 in duroxide 0.1.6) | ||||||
|
||||||
| - Total validation tests: 88 (up from 75 in duroxide 0.1.6) | |
| - Total provider validation tests: 84 (up from 75 in duroxide 0.1.6) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file appears to be a placeholder and doesn't serve a meaningful purpose in the repository root. The comment "# Fresh branch" suggests it was created during development and should likely be removed before merging.