Skip to content

Adding github action to test downstream repos. #1653

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

Merged
merged 10 commits into from
Sep 11, 2020

Conversation

n3wscott
Copy link
Contributor

@n3wscott n3wscott commented Aug 27, 2020

Integrate the knative-sandbox/downstream-test-go action that takes two repos that are checked out and upgrades the downstream with an upstream module, and then runs the standard knative repo update-codegen and runs the unit tests.

This PR makes it an FYI that any future PR will test on the following:

  • Serving
  • Eventing
  • Eventing Contrib
  • Sample Controller
  • Sample Source

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 27, 2020
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 27, 2020
@n3wscott
Copy link
Contributor Author

/hold

going to roll this into a custom github action

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 27, 2020
@n3wscott n3wscott force-pushed the test_downstream branch 3 times, most recently from 1f37f51 to efadcd6 Compare August 31, 2020 20:38
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 31, 2020
@n3wscott n3wscott changed the title looking at what a github action would look like to test a downstream integration. Adding github action to test downstream repos. Aug 31, 2020
@n3wscott
Copy link
Contributor Author

/unhold

This is ready.

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 31, 2020
@vaikas
Copy link
Contributor

vaikas commented Aug 31, 2020

Looks like there was a data race in serving? Can't figure out how to properly cut&paste :)

Goroutine 12 (running) created at:
  testing.(*T).Run()
      /opt/hostedtoolcache/go/1.15.0/x64/src/testing/testing.go:1159 +0x796
  testing.runTests.func1()
      /opt/hostedtoolcache/go/1.15.0/x64/src/testing/testing.go:1430 +0xa6
  testing.tRunner()
      /opt/hostedtoolcache/go/1.15.0/x64/src/testing/testing.go:1108 +0x202
  testing.runTests()
      /opt/hostedtoolcache/go/1.15.0/x64/src/testing/testing.go:1428 +0x5aa
  testing.(*M).Run()
      /opt/hostedtoolcache/go/1.15.0/x64/src/testing/testing.go:1338 +0x4eb
  main.main()
      _testmain.go:47 +0x236

@vagababov
Copy link
Contributor

golang/go#40908

@n3wscott
Copy link
Contributor Author

n3wscott commented Sep 2, 2020

/retest

@n3wscott
Copy link
Contributor Author

n3wscott commented Sep 3, 2020

This is good to go. @mattmoor

name: Serving
strategy:
matrix:
go-version: [1.15.x]
Copy link
Member

Choose a reason for hiding this comment

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

1.14.x

name: Eventing
strategy:
matrix:
go-version: [1.15.x]
Copy link
Member

Choose a reason for hiding this comment

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

1.14.x

@n3wscott
Copy link
Contributor Author

/retest

@@ -53,7 +53,6 @@ jobs:
- name: Check out code onto GOPATH
uses: actions/checkout@v2
with:
fetch-depth: 1
Copy link
Member

Choose a reason for hiding this comment

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

why is this changing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

1 is default, ah well it will get rolled back. This PR is older than .github repo :D

@mattmoor
Copy link
Member

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, n3wscott

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 11, 2020
@knative-prow-robot knative-prow-robot merged commit de640e8 into knative:master Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants