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

Only run CI on push for 'official' branches #3150

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

peternied
Copy link
Member

Description

CodeQL is throwing errors when run inside of branches created by dependabot requests. Also we've had issue with a flood of CI checks that were redudant when inspecting pull request check results. This should limit the 'doubling' up unless you are making a pull request from a fork's main branch.

image

Check List

  • New functionality includes testing
  • New functionality has been documented
  • 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.

@peternied
Copy link
Member Author

Build failures are due to an incoming breaking change, need that resolved before this can be merged

CodeQL is throwning errors when run inside of branches created by
dependabot requests.  Also we've had issue with a flood of CI checks
that were redudant when inspecting pull request check results.  This
should limit the 'doubling' up unless you are making a pull request
from a fork's main branch.

Signed-off-by: Peter Nied <[email protected]>
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Merging #3150 (695443b) into main (31ec322) will decrease coverage by 0.10%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #3150      +/-   ##
============================================
- Coverage     62.45%   62.36%   -0.10%     
+ Complexity     3354     3348       -6     
============================================
  Files           254      254              
  Lines         19749    19749              
  Branches       3334     3334              
============================================
- Hits          12335    12316      -19     
- Misses         5785     5799      +14     
- Partials       1629     1634       +5     

see 7 files with indirect coverage changes

- main
- 1.*
- 2.*
pull_request:
Copy link
Member

@cwperks cwperks Aug 11, 2023

Choose a reason for hiding this comment

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

Is this valid yaml? Does it need one list element like - *?

Copy link
Member Author

Choose a reason for hiding this comment

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

Plan to keep it as is, 'Valid YAML!' according to https://www.yamllint.com/

Looks like an alternative expression would be to indicate null explicitly.

on:
  push:
    branches:
      - main
      - 1.*
      - 2.*
  pull_request: null
env:

^ At least that is what a linter did.

@RyanL1997
Copy link
Collaborator

RyanL1997 commented Aug 11, 2023

@peternied backport to 2.x, 1.x/1.3? ahh nvm I just realized that this is action is for main.

@peternied peternied merged commit 05f12d8 into opensearch-project:main Aug 11, 2023
@peternied peternied deleted the ci-on-some-pushes branch August 11, 2023 18: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.

3 participants