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

Run Skupper integration tests with the skupper-router image #169

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jiridanek
Copy link
Contributor

@jiridanek jiridanek commented Mar 11, 2022

Build the image for pull requests. Only push the image if we are on main branch. Run skupper integration tests with the image before push.

@jiridanek jiridanek requested a review from fgiorgetti March 11, 2022 21:15
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from a46e86d to b29e6d5 Compare March 11, 2022 21:25
@jiridanek
Copy link
Contributor Author

2022-03-11T21:46:44.2939778Z --- FAIL: TestGateway/local-gateway-podman (6.45s)

That happened because the image is only present among docker images and not among podman images.

@jiridanek
Copy link
Contributor Author

jiridanek commented Mar 11, 2022

--- SKIP: TestGateway/local-gateway-service (0.03s)

That is because the systemd gateway test expects to find qdrouterd binary on the PATH (on the machine running the test). Clear evidence that #141 will require renames in skupper repository as well.

I'm inclined to leave this test skipped, because installing dispatch is inconvenient...

skupperGitRef:
required: false
description: Reference to skupper version
default: "0.8.7"
Copy link
Member

Choose a reason for hiding this comment

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

why not leaving master as the default?

Copy link
Contributor Author

@jiridanek jiridanek Mar 16, 2022

Choose a reason for hiding this comment

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

My thinking is that we want to catch issues in skupper-router here. If both skupper and skupper-router are changing from one run of the job to the next, we will never be able to guess which is the culprit of a failure.

So, I want to have the latest known working version of skupper here. Using latest release is the only way I can think of to get a working version. I could somehow figure out how to find the latest commit on master that passed all skupper tests, for example... Or possibly even something more complicated.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, it might be better using 0.8 instead, in this case.

Copy link
Contributor Author

@jiridanek jiridanek Mar 16, 2022

Choose a reason for hiding this comment

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

Certainly not. There has to be a skupper version that works with the skupper-router after the @kgiusti 's renaming. So, at first, I expect there will have to be a commit hash of whatever version where you fix skupper for it. Then, going forward, we can pick some suitable release, yes.

export PUBLIC_1_INGRESS_HOST=10.0.1.1
export QDROUTERD_IMAGE=localhost:32000/skupper-router:registry

go test -count=1 -p=1 -timeout=60m -tags=integration -v ./test/integration/...
Copy link
Member

Choose a reason for hiding this comment

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

you can remove -p=1 here, which would speed things up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a good call, I probably should do that. I worried the output would become less clear, but the way it is now is simply too slow to be useful. Removing -p1 it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-p=3 now, and it passed a few times in a row

@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 2 times, most recently from 7b4aca2 to 9bd3d34 Compare March 23, 2022 13:12
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 2 times, most recently from a1b9cbc to dec746f Compare April 3, 2022 20:05
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 3 times, most recently from f870566 to 4c764e4 Compare April 13, 2022 14:18
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 2 times, most recently from 5c4b31b to 03756de Compare April 26, 2022 15:14
@jiridanek
Copy link
Contributor Author

At this point, there is one fundamental question that needs to be asked. @kgiusti @ganeshmurthy (@cliffjansen) can you live with a CI test that runs 40 minutes and if it fails, it is quite unclear why it failed? (even more unclear than the system-tests)?

To summarize, this brings in integration-tests from skupper, from some known-working version of skupper, but puts in the latest skupper-router image. Then the tests run. These are the same tests that Renato is (was?, still is?) so unhappy about.

@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from e83c251 to 9063ba3 Compare April 28, 2022 20:20
@jiridanek jiridanek changed the title Fixed #xxx: Run Skupper integration tests for skupper-router image Run Skupper integration tests with the skupper-router image Apr 28, 2022
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from fcfbdd1 to 7d51cc0 Compare April 29, 2022 13:40
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 3 times, most recently from e178956 to 051bbdd Compare May 6, 2022 17:14
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch 2 times, most recently from 92197e6 to a4f8062 Compare June 1, 2022 21:48
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from a4f8062 to c326dfe Compare August 5, 2022 18:35
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from 89530c7 to 8fff663 Compare October 26, 2022 08:13
@jiridanek jiridanek force-pushed the jd_2022_03_11_skupper-integration-tests branch from 8aadf81 to f12570c Compare April 1, 2023 19:03
@codecov
Copy link

codecov bot commented Apr 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (d83e009) 30.85% compared to head (f12570c) 30.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #169   +/-   ##
=======================================
  Coverage   30.85%   30.85%           
=======================================
  Files         174      174           
  Lines       38052    38052           
  Branches     5331     5331           
=======================================
  Hits        11741    11741           
  Misses      25155    25155           
  Partials     1156     1156           
Flag Coverage Δ
pyunittests 54.50% <ø> (ø)
unittests 30.85% <ø> (ø)

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

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jiridanek
Copy link
Contributor Author

https://github.com/skupperproject/skupper-router/actions/runs/4584747691/jobs/8096438425?pr=169#step:4:744

go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
client/podman/container.go:12:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/containers; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/containers
client/podman/container.go:13:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/exec; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/exec
client/podman/image.go:9:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/images; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/images
client/podman/network.go:10:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/networks; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/networks
client/podman/version.go:5:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/system; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/system
client/podman/volume.go:8:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/client/volumes; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/client/volumes
client/podman/container.go:14:2: no required module provides package github.com/skupperproject/skupper/client/generated/libpod/models; to add it:
	go get github.com/skupperproject/skupper/client/generated/libpod/models
make: *** [Makefile:23: build-cmd] Error 1
Error: Process completed with exit code 2.

@fgiorgetti does this by any chance mean anything to you? I'm thinking maybe I'm missing something obvious. If not, I will consider investigating further (or maybe burying this PR and never coming back ;)

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.

2 participants