Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
61ef375
chaos tests
maxdml Sep 23, 2025
214ffd7
cleanup errors
maxdml Sep 23, 2025
1885024
retrier
maxdml Sep 23, 2025
74d8919
use retrier
maxdml Sep 23, 2025
7224dfc
fix defer in test
maxdml Sep 23, 2025
0d03ad4
Revert "cleanup errors"
maxdml Sep 23, 2025
f4121d5
imports
maxdml Sep 23, 2025
7fb6a62
more wrapping
maxdml Sep 23, 2025
35ff511
tests
maxdml Sep 24, 2025
dd1c15e
no need to install docker in gha
maxdml Sep 24, 2025
5f01217
cli readme @ latest
maxdml Sep 24, 2025
0500445
missing folder
maxdml Sep 24, 2025
941d9b3
QueryEscape
maxdml Sep 24, 2025
d6c422e
on the password, and do not pass env var
maxdml Sep 24, 2025
6d39fa4
no -race for chaos
maxdml Sep 24, 2025
be3829a
fix
maxdml Sep 24, 2025
7874bc9
double escape
maxdml Sep 24, 2025
f7f417f
cleanup
maxdml Sep 24, 2025
0c4bb5c
fix
maxdml Sep 24, 2025
a7bdb98
info
maxdml Sep 24, 2025
756eae8
cleanup
maxdml Sep 24, 2025
816f1df
support Unwrap in DBOSError + have newWorkflowExecutionError receive …
maxdml Sep 24, 2025
e79bf4c
handle pgx.ErrTxClosed as retryable but wrap entire RunWorkflow in a …
maxdml Sep 24, 2025
a5b9f5f
explicit warning for pgx.ErrTxClosed
maxdml Sep 24, 2025
60a36dc
cleanup
maxdml Sep 24, 2025
acd5524
remove postgres from gha
maxdml Sep 24, 2025
9085bee
start postgres before running the test
maxdml Sep 24, 2025
8fd09ad
CLI must escape urls too
maxdml Sep 24, 2025
3f4d01e
remove cache for now + shorter timeout
maxdml Sep 24, 2025
28640f1
debug in tests...
maxdml Sep 24, 2025
38d6e62
more debug
maxdml Sep 24, 2025
066c137
handle lost wake-up
maxdml Sep 24, 2025
a888735
typedErasedWorkflow does not need to handle errors: it is always call…
maxdml Sep 25, 2025
a14ac95
must run retried function at least once
maxdml Sep 25, 2025
dd806fd
die less often
maxdml Sep 25, 2025
102a8df
cache does not seem very useful
maxdml Sep 25, 2025
ecab120
check interface before using logger -- fixes mock path
maxdml Sep 25, 2025
da38b95
handle 'container is marked for removal and cannot be started' and th…
maxdml Sep 25, 2025
7062c15
retoggle debug
maxdml Sep 25, 2025
0adbbea
some clues
maxdml Sep 25, 2025
9aef64a
a long timeout
maxdml Sep 25, 2025
34f0268
more timeout
maxdml Sep 25, 2025
c54c692
+1
maxdml Sep 25, 2025
6c527dc
log starts too
maxdml Sep 25, 2025
e61ae86
specify persistent volume when creating postgres container
maxdml Sep 25, 2025
569bc32
manually handle locks in getEvent
maxdml Sep 25, 2025
74ffbe0
fix
maxdml Sep 25, 2025
b87b0c7
wrap tx only in retry in RunWorkflow
maxdml Sep 25, 2025
7df56b6
client enqueue retry
maxdml Sep 25, 2025
c875ec0
should not use uncancellable contexts for retry itself
maxdml Sep 25, 2025
8505f14
less chatty logs
maxdml Sep 25, 2025
d795789
less chatty x2
maxdml Sep 25, 2025
6f9ec3e
move cancel function setup out of RunWorkflow transaction
maxdml Sep 25, 2025
dbf7b2c
do less
maxdml Sep 26, 2025
713e6d2
comment
maxdml Sep 26, 2025
7cef987
test scheduled workflow
maxdml Sep 26, 2025
97685fd
revert template change to not conflict with #155
maxdml Sep 26, 2025
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
44 changes: 44 additions & 0 deletions .github/workflows/chaos-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run Chaos Tests
on:
schedule:
# Runs every hour on the hour
- cron: '0 * * * *'
push:
branches:
- main
pull_request:
branches:
types:
- ready_for_review
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
chaos-test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.25.x'

- name: Download dependencies
run: go mod download

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Run chaos tests
run: go vet ./... && go test -v -race -timeout 60m -count=1 ./...
working-directory: ./chaos_tests
env:
PGPASSWORD: a!b@c$d()e*_,/:;=?@ff[]22
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 0 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ jobs:
with:
go-version: '1.25.x'

- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
Comment on lines -47 to -56
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem very useful

- name: Download dependencies
run: go mod download

Expand Down
Loading
Loading