Skip to content

Integrate circle CI with Testgrid#4649

Merged
istio-merge-robot merged 1 commit intoistio:masterfrom
chxchx:circleTestgrid
Apr 20, 2018
Merged

Integrate circle CI with Testgrid#4649
istio-merge-robot merged 1 commit intoistio:masterfrom
chxchx:circleTestgrid

Conversation

@chxchx
Copy link
Copy Markdown
Contributor

@chxchx chxchx commented Mar 30, 2018

The integration will start with mixer and simple e2e tests. Will expand to other jobs in subsequent PRs.

Results are now available on
https://k8s-testgrid.appspot.com/istio#circleci-e2e-mixer
https://k8s-testgrid.appspot.com/istio#circleci-e2e-simple

Those are test results from this PR exclusively. After this is merged, the results will be more interesting.

The ci_to_gubernator binary is built from istio/test-infra#769. Feel free to also take a look.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2018

Codecov Report

Merging #4649 into master will increase coverage by 1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #4649    +/-   ##
=======================================
+ Coverage      73%     73%    +1%     
=======================================
  Files         311     311            
  Lines       25949   26144   +195     
=======================================
+ Hits        18826   19061   +235     
+ Misses       6364    6318    -46     
- Partials      759     765     +6
Impacted Files Coverage Δ
pilot/pkg/config/memory/monitor.go 82% <0%> (-9%) ⬇️
mixer/adapter/stackdriver/log/log.go 67% <0%> (-5%) ⬇️
pilot/pkg/serviceregistry/kube/queue.go 86% <0%> (-3%) ⬇️
...olarwinds/internal/papertrail/papertrail_logger.go 59% <0%> (-3%) ⬇️
mixer/adapter/circonus/circonus.go 71% <0%> (-2%) ⬇️
mixer/adapter/opa/opa.go 79% <0%> (-1%) ⬇️
mixer/adapter/list/list.go 100% <0%> (ø) ⬇️
mixer/adapter/solarwinds/metrics_handler.go 84% <0%> (ø) ⬇️
mixer/adapter/stdio/stdio.go 100% <0%> (ø) ⬆️
pilot/pkg/serviceregistry/kube/controller.go 67% <0%> (ø) ⬆️
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e443e5...e6edcd8. Read the comment docs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How big is it ? Is it a script ? Can we check it in ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I removed this from docker image and create a separate scripts in bin/. See istio/test-infra#769 for the source of ci_to_gubernator

@chxchx chxchx force-pushed the circleTestgrid branch 9 times, most recently from af2b305 to 84fd1b3 Compare March 30, 2018 21:19
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Apr 3, 2018
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Apr 3, 2018
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Apr 3, 2018
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Apr 3, 2018
@chxchx chxchx force-pushed the circleTestgrid branch 9 times, most recently from 4e91016 to c7ea090 Compare April 3, 2018 23:04
@chxchx chxchx force-pushed the circleTestgrid branch 10 times, most recently from 70c6fcb to 842c361 Compare April 11, 2018 22:25
@chxchx
Copy link
Copy Markdown
Contributor Author

chxchx commented Apr 12, 2018

PTAL @costinm @sebastienvas

The makefile is left intact and logics moved to circle ci config yaml, which uses anchors to reuse the same routines. More details are in my previous comment.

Copy link
Copy Markdown
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

Better - but still small comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The make targets should internally tee, but into $OUT/... not tmp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This likely has the same problem we had in the past with pipefail.

Copy link
Copy Markdown
Contributor Author

@chxchx chxchx Apr 13, 2018

Choose a reason for hiding this comment

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

Every run step in circle ci is executed in the #!/bin/bash -eo pipefail environment, so pipe into tee directly is fine and this command will exit with the same exit code as the make e2e_* target. I had the same concern as you do but then I noticed quite a few usage of this fashion in the circle ci config yaml so I think it is fine.

I would prefer instrumenting the tee command outside of the makefile as different CI handles the log differently and developers may not care storing the logs separately besides seeing them on console already (just like we don't generate the junit xml by default and actually do so in a second steps)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

junit.xml is used by circleci for its internal reporting - and should be generated under out/tetss (see store_test_results)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@chxchx
Copy link
Copy Markdown
Contributor Author

chxchx commented Apr 17, 2018

PTAL @costinm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove the wget part.

@sebastienvas
Copy link
Copy Markdown
Contributor

/lgtm

@chxchx
Copy link
Copy Markdown
Contributor Author

chxchx commented Apr 19, 2018

PTAL

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Apr 20, 2018

/test

Copy link
Copy Markdown
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@sebastienvas
Copy link
Copy Markdown
Contributor

/lgtm

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: costinm, sebastienvas

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

The pull request process is described here

Details 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

@istio-merge-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-testing
Copy link
Copy Markdown
Collaborator

istio-testing commented Apr 20, 2018

@chxchx: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/e2e-bookInfoTests-v1alpha3.sh e6edcd8 link /test e2e-bookInfo-envoyv2-v1alpha3
prow/istio-pilot-e2e.sh e6edcd8 link /test istio-pilot-e2e
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-merge-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

@ldemailly
Copy link
Copy Markdown
Member

looks like this broke circleci - any idea how come it went through undetected ?

bin/ci2gubernator.sh: line 25: CIRCLE_PR_NUMBER: unbound variable

eg https://circleci.com/gh/istio/istio/79135

@chxchx
Copy link
Copy Markdown
Contributor Author

chxchx commented Apr 23, 2018

As the discussion from slack, the issue seems to happen on PRs from a branch in istio/istio (same repo) and not for PRs from forked repos. Pending further investigation, the immediate fix is here #5137.

@ldemailly
Copy link
Copy Markdown
Member

thx for the quick fix, please file a follow up issue

make docker.all generate_yaml
- run: bin/testEnvRootMinikube.sh wait
- run: docker images
- run: make test/minikube/auth/e2e_simple
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.

hey I had fixed this test to be running with auth (it needs to) - this PR reverted my fix

@ldemailly
Copy link
Copy Markdown
Member

fixing the e2e simple change from auth -> noauth; back to auth in
https://github.com/istio/istio/pull/5241/files#diff-1d37e48f9ceff6d8030570cd36286a61

@chxchx
Copy link
Copy Markdown
Contributor Author

chxchx commented Apr 27, 2018

Sorry that was probably messed up when I was fixing merge conflicts. Good catch!

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.

7 participants