Skip to content

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

Merged
peternied merged 1 commit intoopensearch-project:mainfrom
peternied:ci-on-some-pushes
Aug 11, 2023
Merged

Only run CI on push for 'official' branches#3150
peternied merged 1 commit intoopensearch-project:mainfrom
peternied:ci-on-some-pushes

Conversation

@peternied
Copy link
Copy Markdown
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
Copy Markdown
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 <petern@amazon.com>
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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