Skip to content
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

feat: optimize run conditions for conditional unit tests #15583

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

erikburt
Copy link
Collaborator

@erikburt erikburt commented Dec 9, 2024

Changes

  • Add more optimized run-conditions for conditional tests workflow

Notes

  • Core Tests will run if:

    • any 'core changes' or
    • any 'workflow changes' or
    • scheduled event or
    • push to develop
  • CCIP Deployment tests will run if:

    • any 'deployment changes' or
    • any 'workflow changes' or
    • scheduled event or
    • push to develop
  • Run all tests (ie. ignore hash comparison) if

    • any testdata changes
    • scheduled event

Motivation

Even though test runs are conditional based on the binary's hash, this will further optimize whether or not they need to be built at all. Some example changes that will benefit from this:

  • Workflow changes to other workflows
  • Documentation changes
  • Deployment changes not triggering core
  • Integration tests changes not triggering deployment or core changes

Testing

Opened a PR against this PR branch (#15584):


RE-3313

@erikburt erikburt self-assigned this Dec 9, 2024
@erikburt erikburt force-pushed the feat/go-conditional-tests-conditions branch 5 times, most recently from 1abf8d9 to c97a6e3 Compare December 9, 2024 23:59
@erikburt erikburt force-pushed the feat/go-conditional-tests-conditions branch from c97a6e3 to 0c65ceb Compare December 10, 2024 00:13
@erikburt erikburt marked this pull request as ready for review December 10, 2024 00:13
@erikburt erikburt requested review from a team as code owners December 10, 2024 00:13
@erikburt erikburt marked this pull request as draft December 12, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant