Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
2291f35
CI: Add Testmon cache restoration for test selective run
eblanco-ansys Dec 19, 2025
12494e0
chore: adding changelog file 7035.maintenance.md [dependabot-skip]
pyansys-ci-bot Dec 19, 2025
4170564
Merge branch 'main' into ci/testmon-selective-tests
Samuelopez-ansys Dec 29, 2025
984d769
Add testmon
Samuelopez-ansys Dec 29, 2025
aea6df5
nightly-tests.yml
Samuelopez-ansys Dec 29, 2025
407c784
Draft PR
Samuelopez-ansys Dec 29, 2025
ac32897
Fix issue
Samuelopez-ansys Dec 29, 2025
2ab8708
Fix security
Samuelopez-ansys Dec 29, 2025
5a9b59f
Fix
eblanco-ansys Jan 2, 2026
659bf71
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 2, 2026
2178fdd
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 2, 2026
a7615a9
Fix
eblanco-ansys Jan 2, 2026
d9d1cb6
Fixed regional setting
eblanco-ansys Jan 2, 2026
f491e84
Merge branch 'main' into ci/testmon-selective-tests
Samuelopez-ansys Jan 7, 2026
efbd33a
Update title
Samuelopez-ansys Jan 7, 2026
57597f0
Fix job name
Samuelopez-ansys Jan 7, 2026
886a797
Merge branch 'main' into ci/testmon-selective-tests
Samuelopez-ansys Jan 7, 2026
5daf432
Reverted regional setting fix (#7062)
eblanco-ansys Jan 8, 2026
b4cf1c8
Updated keys for OS distinction
eblanco-ansys Jan 8, 2026
8330a39
Upload .testmondata to PR artifacts
eblanco-ansys Jan 8, 2026
40a5bea
Add workflow to update Testmon cache on merge
eblanco-ansys Jan 8, 2026
167f390
Fixes
eblanco-ansys Jan 8, 2026
7846b22
Fixes
eblanco-ansys Jan 8, 2026
c597a12
Modified permissions to job level
eblanco-ansys Jan 8, 2026
26fd6ee
Block default permissions
eblanco-ansys Jan 8, 2026
e2434cf
Fixed issue with .testmondata file
eblanco-ansys Jan 8, 2026
d9302b6
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 9, 2026
06631f6
Updated action to use actions/download-artifact
eblanco-ansys Jan 9, 2026
673506d
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 9, 2026
1696380
Remove flaky tests messages
eblanco-ansys Jan 12, 2026
df1d0f4
Regional setting fix
eblanco-ansys Jan 12, 2026
171e867
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 12, 2026
1be6438
Fix cache upload
eblanco-ansys Jan 12, 2026
fd87e5c
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 12, 2026
7288970
Update .github/actions/testmon-cache/action.yml
eblanco-ansys Jan 12, 2026
bda9379
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
7368827
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
bef63f7
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
18c8237
Update .github/workflows/update-testmondata-cache.yml
eblanco-ansys Jan 12, 2026
e9d9f3f
Update .github/workflows/update-testmondata-cache.yml
eblanco-ansys Jan 12, 2026
969f785
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
ba7d2cf
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
595d3c2
Update .github/workflows/update-testmondata-cache.yml
eblanco-ansys Jan 12, 2026
6204fde
Update .github/workflows/ci_cd.yml
eblanco-ansys Jan 12, 2026
4ad40f3
Update .github/workflows/nightly-tests.yml
eblanco-ansys Jan 12, 2026
fbd2c02
Update .github/workflows/nightly-tests.yml
eblanco-ansys Jan 12, 2026
4384727
Update .github/workflows/nightly-tests.yml
eblanco-ansys Jan 12, 2026
d6efb1a
Update .github/workflows/nightly-tests.yml
eblanco-ansys Jan 12, 2026
01827f3
Update .github/workflows/nightly-tests.yml
eblanco-ansys Jan 12, 2026
5c9723d
Improved styling
eblanco-ansys Jan 12, 2026
26c301a
Fixes
eblanco-ansys Jan 12, 2026
8b07423
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 12, 2026
7cb5944
Fix
eblanco-ansys Jan 12, 2026
b0931fb
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 12, 2026
5100234
Run it just on merge
eblanco-ansys Jan 12, 2026
22e845b
Implement wait for cache update mechanism + fixes
eblanco-ansys Jan 12, 2026
9e18ee7
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Jan 12, 2026
64990b9
Fixes
eblanco-ansys Jan 12, 2026
89c631a
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 12, 2026
f319c7c
Fix
eblanco-ansys Jan 12, 2026
f832f37
Fix
eblanco-ansys Jan 13, 2026
34515c6
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 13, 2026
c528323
Fix
eblanco-ansys Jan 13, 2026
51c5c0c
Fixes
eblanco-ansys Jan 13, 2026
6101d45
Added dispatch and cancel on failure
eblanco-ansys Jan 13, 2026
f6114da
ci: Add unit-tests and integration-tests to nightly-tests.yml workflow
ecoussoux-ansys Jan 14, 2026
ad1dc15
Merge branch 'main' into ci/testmon-selective-tests
Samuelopez-ansys Jan 14, 2026
ee96eb4
Deactivate main branch trigger
eblanco-ansys Jan 14, 2026
deab686
ci: Add weekly-tests.yml workflow running all tests and updating test…
ecoussoux-ansys Jan 14, 2026
7635202
ci: Impose self-hosted runners where needed in jobs of update-testmon…
ecoussoux-ansys Jan 14, 2026
499300e
ci: Align update-testmondata-cache.yml jobs with test jobs from other…
ecoussoux-ansys Jan 14, 2026
de59388
ci: Propagate changes to ci_cd.yml from recent PRs to other workflows
ecoussoux-ansys Jan 14, 2026
f06177d
Merge branch 'main' into ci/testmon-selective-tests
ecoussoux-ansys Jan 14, 2026
8b2ca4e
Merge branch 'main' into ci/testmon-selective-tests
eblanco-ansys Jan 15, 2026
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
72 changes: 72 additions & 0 deletions .github/actions/check-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 'Wait for main Cache Update'
description: 'Waits for the main cache update workflow to complete before proceeding with tests'

runs:
using: 'composite'
steps:
- name: Wait for main cache update
if: github.event_name == 'pull_request'
shell: bash
run: |
echo "Checking if main cache update is running..."

# First check if the workflow file exists on the main branch
if ! gh api repos/${GITHUB_REPOSITORY}/actions/workflows/update-testmondata-cache.yml --silent 2>/dev/null; then
echo "::notice::Cache update workflow (update-testmondata-cache.yml) not found on main branch yet."
echo "::notice::This is expected before the workflow is merged. Skip for now"
exit 0
fi

max_attempts=60
attempt=0
final_conclusion=""

while [ $attempt -lt $max_attempts ]; do
# Check workflow conclusion for base commit
WORKFLOW_CONCLUSION=$(gh run list \
--workflow=update-testmondata-cache.yml \
--branch=main \
--json status,conclusion,headSha \
--jq ".[] | select(.headSha == \"$BASE_SHA\") | .conclusion")

if [ "$WORKFLOW_CONCLUSION" == "success" ]; then
echo "::notice::main cache update completed successfully"
final_conclusion="success"
break
elif [ "$WORKFLOW_CONCLUSION" == "failure" ] || [ "$WORKFLOW_CONCLUSION" == "cancelled" ]; then
echo "::warning::main cache update workflow failed or was cancelled"
final_conclusion="$WORKFLOW_CONCLUSION"
break
elif [ -z "$WORKFLOW_CONCLUSION" ]; then
# Check if workflow exists but hasn't completed
WORKFLOW_EXISTS=$(gh run list \
--workflow=update-testmondata-cache.yml \
--branch=main \
--json headSha \
--jq ".[] | select(.headSha == \"$BASE_SHA\") | .headSha")

if [ -z "$WORKFLOW_EXISTS" ]; then
echo "::notice::No cache update workflow found for base commit (using existing cache)"
break
fi
fi

attempt=$((attempt + 1))
echo "::notice::Attempt $attempt/$max_attempts: Cache update still running, waiting 10s..."
sleep 10
done

if [ $attempt -eq $max_attempts ]; then
echo "::error::Timeout waiting for cache update. Cannot proceed without verified cache."
exit 1
fi

# Verify the workflow completed successfully
if [ "$final_conclusion" == "failure" ] || [ "$final_conclusion" == "cancelled" ]; then
echo "::error::Cache update workflow did not complete successfully (status: $final_conclusion). Cannot proceed with tests."
exit 1
fi
env:
GITHUB_REPOSITORY: ${{ github.repository }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GH_TOKEN: ${{ github.token }}
37 changes: 37 additions & 0 deletions .github/actions/testmon-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Restore Testmon Cache'
description: 'Restores testmon data from cache'
inputs:
testmon-datafile:
description: 'Path to the testmon data file'
required: true
default: '.testmondata'
cache-key:
description: 'Base cache key for testmon data'
required: true
default: 'testmondata-all'

runs:
using: "composite"
steps:
- name: Restore testmondata cache
id: testmon-cache
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ inputs.testmon-datafile }}
key: ${{ inputs.cache-key }}-${{ github.base_ref || 'main' }}-${{ github.sha }}
restore-keys: |
${{ inputs.cache-key }}-${{ github.base_ref || 'main' }}-
${{ inputs.cache-key }}-main-

- name: Check testmon cache status
shell: bash
env:
EVENT_NAME: ${{ github.event_name }}
TESTMON_FILE: ${{ inputs.testmon-datafile }}
run: |
if [ -f "$TESTMON_FILE" ]; then
echo "Testmon cache restored successfully"
ls -lh "$TESTMON_FILE"
else
echo "No testmon cache found - will run all tests"
fi
Loading
Loading