Skip to content

Trigger build on pull request synchronize action. - #873

Merged
vamsimanohar merged 1 commit into
opensearch-project:2.xfrom
vamsimanohar:build-fix
Sep 30, 2022
Merged

vamsimanohar merged 1 commit into
opensearch-project:2.xfrom
vamsimanohar:build-fix

Conversation

@vamsimanohar

@vamsimanohar vamsimanohar commented Sep 29, 2022 •

Copy link
Copy Markdown
Member

Signed-off-by: vamsi-amazon [email protected]

Description

Build is not getting triggered on updating PR with new commits.
Removed types under pull_request. This would default to opened, reopened, synchronize.
Ref for synchronize def: https://frontside.com/blog/2020-05-26-github-actions-pull_request/

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov-commenter

codecov-commenter commented Sep 29, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.97%. Comparing base (3ca6450) to head (6c4e747).
⚠️ Report is 600 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #873      +/-   ##
============================================
- Coverage     97.85%   94.97%   -2.89%     
  Complexity     2989     2989              
============================================
  Files           281      291      +10     
  Lines          7357     8015     +658     
  Branches        467      586     +119     
============================================
+ Hits           7199     7612     +413     
- Misses          157      349     +192     
- Partials          1       54      +53     
Flag Coverage Δ
query-workbench 62.76% <ø> (?)
sql-engine 97.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dai-chen dai-chen added infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. backport 1.x labels Sep 29, 2022
dai-chen
dai-chen previously approved these changes Sep 29, 2022

@dai-chen dai-chen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix!

joshuali925
joshuali925 previously approved these changes Sep 29, 2022

@joshuali925 joshuali925 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

didn't know about synchronize

by default it will be triggered on three different types of activities: opened, synchronize, and reopened.

since it's default should types: just be removed?

@vamsimanohar

Copy link
Copy Markdown
Member Author

didn't know about synchronize

by default it will be triggered on three different types of activities: opened, synchronize, and reopened.

since it's default should types: just be removed?

You are right. From the official documentation. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows

Note: More than one activity type triggers this event. For information about each activity type, see "[Webhook events and payloads](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request)." By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened. To trigger workflows by different activity types, use the types keyword. For more information, see "[Workflow syntax for GitHub Actions](https://docs.github.com/en/articles/workflow-syntax-for-github-actions#onevent_nametypes)."

Will remove types entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport main backport 1.x infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants