Skip to content
Open
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d95b172
Adding tmate to CI for debugging
pshriwise Sep 20, 2024
b18f5b5
Only enable tmate if [ci-debug] is in the commit message
pshriwise Oct 10, 2024
54cdb0c
Add artificial failure to tests
pshriwise Oct 10, 2024
3c4cc3f
Make the tests fail faster and better and more spectacularly than eve…
pshriwise Oct 10, 2024
dc8d981
Triggering debug session [gha-debug]
pshriwise Oct 10, 2024
ad542d0
Start tmate detatched [gha-debug]
pshriwise Oct 10, 2024
dbfcd47
Updating tmate syntax [gha-debug]
pshriwise Oct 10, 2024
b84af4c
Trying quotes [gha-debug]
pshriwise Oct 10, 2024
279560e
Trying endswith [gha-debug]
pshriwise Oct 10, 2024
e0d9efe
Update ci.yml
pshriwise Oct 10, 2024
9a6944d
It can't be that difficult [gha-debug]
pshriwise Oct 10, 2024
38bc338
It is that difficult. [gha-debug]
pshriwise Oct 10, 2024
3510237
Skip that debug boi
pshriwise Oct 10, 2024
1adb0dd
Don't limit me! [gha-debug]
pshriwise Oct 10, 2024
6b9459a
Less clingy [gha-debug]
pshriwise Oct 10, 2024
6a93797
debug [gha-debug] that gha
pshriwise Oct 10, 2024
bc0a686
no debug
pshriwise Oct 10, 2024
a31e2c5
Update ci.yml [gha-debug]
pshriwise Oct 10, 2024
439fb2d
Update ci.yml
pshriwise Oct 10, 2024
807d7c5
Update ci.yml [gha-debug]
pshriwise Oct 10, 2024
719b60a
Update ci.yml [gha-debug]
pshriwise Oct 10, 2024
055ab27
Getting info about PR event
pshriwise Oct 11, 2024
f920e5b
More info
pshriwise Oct 11, 2024
642c579
Update ci.yml
pshriwise Oct 11, 2024
0061084
Update ci.yml
pshriwise Oct 11, 2024
ac9508c
Update ci.yml
pshriwise Oct 11, 2024
a2e09d3
Update ci.yml
pshriwise Oct 11, 2024
d948eda
Update ci.yml
pshriwise Oct 11, 2024
3efdb32
Update ci.yml
pshriwise Oct 11, 2024
5854004
Update ci.yml
pshriwise Oct 11, 2024
0757450
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
a936dba
Update ci.yml
pshriwise Oct 11, 2024
e70ac2d
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
491f3dc
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
a2fd5bc
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
32297fd
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
4aa7d49
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
90a3474
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
649e0bb
Update ci.yml
pshriwise Oct 11, 2024
7c61faa
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
34fd672
Update ci.yml [gha-debug]
pshriwise Oct 11, 2024
c98390f
Update test.py [gha-debug]
pshriwise Oct 11, 2024
a8a8ab4
Update gha-script.sh
pshriwise Oct 12, 2024
24083d4
Update ci.yml
pshriwise Oct 12, 2024
182587e
Update ci.yml [gha-debug]
pshriwise Oct 12, 2024
25c795d
Update ci.yml [gha-debug]
pshriwise Oct 14, 2024
25bf1fd
Update ci.yml [gha-debug]
pshriwise Oct 14, 2024
4aae035
Updating commit message echo [gha-debug]
pshriwise Feb 6, 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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set commit message env var
run: |
# get the sha of the last branch commit
if [ "${{ github.event_name }}" == "pull_request" ]; then
# use the last reference in the parents of the merge commit for pull request events
BRANCH_SHA=$(git rev-list --parents -n 1 HEAD | rev | cut -d" " -f 1 | rev)
else
# use the current head for push events
BRANCH_SHA=HEAD
fi
COMMIT_MESSAGE=$(git log $BRANCH_SHA -1 --pretty=%B)
echo "Commit message: ${COMMIT_MESSAGE}"
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_ENV

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down Expand Up @@ -149,6 +165,12 @@ jobs:
CTEST_OUTPUT_ON_FAILURE=1 make test -C $GITHUB_WORKSPACE/build/
$GITHUB_WORKSPACE/tools/ci/gha-script.sh

- name: Setup tmate debug session
continue-on-error: true
if: ${{ contains(env.COMMIT_MESSAGE, '[gha-debug]') }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10

- name: after_success
shell: bash
run: |
Expand Down
Loading