-
Notifications
You must be signed in to change notification settings - Fork 98
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
Resume K8s integration tests #1314
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9d23470
[issues-1313] - Fix the docker host sock address
fabiobrz 49c3e9e
[issues-1313] - Add the Fabric8 kubernetes-client dependency with tes…
fabiobrz 7045555
[issues-1313] - Fix KubernetesRequirement in order to send the correc…
fabiobrz ef03e3b
[issues-1313] - Fix PortForwarder in order to send the correct X-Stre…
fabiobrz 3762ba0
[issues-1313] - Fix Fabric8 model ReplicaSet related imports in order…
fabiobrz 2037a85
[issues-1313] - Fix KubernetesAssistant in order to properly evaluate…
fabiobrz 05f2a07
[issues-1313] - Fix Deployment resource .apiVersion definition in tes…
fabiobrz b363ee2
[issues-1313] - Fix imports in HelloWorldKubernetesAssistantTest and …
fabiobrz e0e477c
[issues-1313] - CI: Use GitHub actions for integration tests
fabiobrz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ on: | |
- 'doc/**' | ||
- '.circleci/**' | ||
env: | ||
# failsafe.groups configuration depends on the env setup. | ||
FAILSAFE_GROUPS: '' | ||
DOCKER_HOST: 'unix:///var/run/docker.sock' | ||
|
||
jobs: | ||
|
@@ -23,9 +21,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
java: ['11'] | ||
|
||
target: ['docker', 'kubernetes'] | ||
env: | ||
# failsafe.groups configuration depends on the env setup. | ||
FAILSAFE_GROUPS: '' | ||
steps: | ||
- name: Setup Minikube | ||
- name: Setup Minikube # add an if for the kubernetes target only? | ||
uses: manusa/[email protected] | ||
with: | ||
driver: docker | ||
|
@@ -34,8 +35,6 @@ jobs: | |
kubernetes version: 'v1.30.0' | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
start args: "--memory='4gb' --cpus='2'" | ||
env: | ||
FAILSAFE_GROUPS: "-Dfailsafe.groups=\"org.arquillian.cube.docker.impl.requirement.RequiresDocker,org.arquillian.cube.kubernetes.impl.requirement.RequiresKubernetes\"" | ||
- name: Enable minikube registry | ||
run: | | ||
minikube addons enable registry | ||
|
@@ -55,10 +54,15 @@ jobs: | |
distribution: 'adopt' | ||
- name: Maven pre-fetch dependencies ${{ matrix.java }} | ||
run: | | ||
./mvnw verify -q -U -DskipTests # pre-fetch dependencies | ||
- name: Build with Maven Java ${{ matrix.java }} | ||
./mvnw clean package -q -U -DskipTests # pre-fetch dependencies | ||
- name: Build and run integration tests for Docker target (${{ matrix.java }}) | ||
if: ${{ matrix.target == 'docker' }} | ||
run: | | ||
./mvnw package -Dfailsafe.groups=org.arquillian.cube.docker.impl.requirement.RequiresDocker -Dcontainerless.skip.tests=true | ||
- name: Build and run integration tests for Kubernetes target (${{ matrix.java }}) | ||
if: ${{ matrix.target == 'kubernetes' }} | ||
run: | | ||
./mvnw -fae clean package ${{ env.FAILSAFE_GROUPS }} | ||
./mvnw verify -Dfailsafe.groups=org.arquillian.cube.kubernetes.impl.requirement.RequiresKubernetes -Dcontainerless.skip.tests=true | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor thing. Can we add this dependency under kubernetes/pom.xml instead of adding to each sub modules ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimma the dependency is needed by 5 out of 9 child projects, and we don't really want for others that don't need it to inherit it, e.g.: the
istio
module should not depend on this artifact as they don't need it. The dependency management is already defined by the root POM, so in the end I don't think we should bring it up.Do you agree?