Skip to content

Running workflows based on affected bazel targets#10405

Merged
diemol merged 54 commits intotrunkfrom
dispatch-workflows
Mar 2, 2022
Merged

Running workflows based on affected bazel targets#10405
diemol merged 54 commits intotrunkfrom
dispatch-workflows

Conversation

@diemol
Copy link
Copy Markdown
Member

@diemol diemol commented Mar 1, 2022

So far, we have been using GitHub paths to decide when to run a workflow or not. However, this is not always accurate because one might need to build bazel targets from other code path and then the configuration gets tricky.

This PR changes that, analyses the diff to figure out if any bazel target is affected, and based on the code path, it is decided if the whole workflow will be executed or not.

So, there will be a main workflow (dispatch-workflows.yml) that will run on PRs and push to trunk, and based on the changeset, it will trigger the desired workflow.

In addition, to avoid corner cases, all workflows are scheduled to be run twice a day. With that, we can catch things that the improved workflow did not catch.

A follow up PR should be created to filter the workflow execution by the affected bazel targets.

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@diemol diemol changed the title Adding a workflow to dispatch workflows Running workflows based on affected bazel targets Mar 2, 2022
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@diemol diemol merged commit 7908fc2 into trunk Mar 2, 2022
@diemol diemol deleted the dispatch-workflows branch March 2, 2022 13:33
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
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