Skip to content

Add CI workflow for flaky runs#2618

Merged
VeckoTheGecko merged 5 commits intoParcels-code:mainfrom
VeckoTheGecko:flaky
May 1, 2026
Merged

Add CI workflow for flaky runs#2618
VeckoTheGecko merged 5 commits intoParcels-code:mainfrom
VeckoTheGecko:flaky

Conversation

@VeckoTheGecko
Copy link
Copy Markdown
Contributor

Changes

  • Updates the pixi run tests task so that flaky tests aren't run by default
  • Adds a CI workflow for flaky tests
  • Marks test_pooch_registry_url_reponse as flaky

Checklist

AI Disclosure

None used

Also update `tests` task in Pixi so by default doesnt run flaky tests
Comment thread .github/workflows/ci.yml
- name: Unit test
id: unit-test
run: |
pixi run -e ${{ matrix.pixi-environment }} tests -m 'flaky' -v -s --cov=parcels --cov-report=xml --html="${COVERAGE_REPORT}" --self-contained-html
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is basically equivalent to pytest -m 'not flaky' -m 'flaky' (the second flag overrides the first one)

Comment thread .github/workflows/ci.yml
with:
name: Unittest report ${{ matrix.os }}-${{ matrix.pixi-environment }}
path: ${{ env.COVERAGE_REPORT }}
flaky-unit-test:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This workflow is mostly the same as the unit test one. I kept in the coverage and the test reporting (in case we mark more tests as flaky in future, it would be handy to have coverage and this output I think )

Copy link
Copy Markdown
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

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

One small type-o. Looks good otherwise!

Comment thread .github/workflows/ci.yml Outdated
VeckoTheGecko and others added 2 commits May 1, 2026 11:52
Co-authored-by: Erik van Sebille <e.vansebille@uu.nl>
@VeckoTheGecko VeckoTheGecko merged commit 031c5be into Parcels-code:main May 1, 2026
4 of 5 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development May 1, 2026
@VeckoTheGecko VeckoTheGecko deleted the flaky branch May 1, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Separate CI run for flaky tests

2 participants