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

Switching e2e tests to run on main #272

Merged
merged 6 commits into from
Jun 25, 2024

Conversation

radoslawc
Copy link
Collaborator

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind cleanup
/kind design
/kind documentation

/kind failing-test

/kind feature
/kind flake

What this PR does / why we need it:
Switching to main catalog branch
Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@radoslawc
Copy link
Collaborator Author

/test provision-linter

@liamfallon
Copy link
Member

liamfallon commented Jun 20, 2024

I found only two more references to v2.0.0 in the end to end tests:

export REVISION=${REVISION:-v2.0.0}

The variable "REVISION" is used in a few places:

  • regional_pkg_rev=$(porchctl rpkg clone -n default "https://github.com/nephio-project/catalog.git/infra/capi/nephio-workload-cluster@$REVISION" --repository mgmt regional | cut -f 1 -d ' ')
  • pkg_rev=$(porchctl rpkg clone -n default "https://github.com/nephio-project/catalog.git/workloads/free5gc/free5gc-cp@$REVISION" --repository regional free5gc-cp | cut -f 1 -d ' ')
  • pkg_rev=$(porchctl rpkg clone -n default "https://github.com/nephio-project/catalog.git/distros/sandbox/metallb-sandbox-config@$REVISION" --repository mgmt-staging "$cluster-metallb-sandbox-config" | cut -f 1 -d ' ')

Then it looks like we are using a prebuilt version of the v2.0.0 porchctl command here:

src: https://github.com/nephio-project/porch/releases/download/v2.0.0/porchctl_2.0.0_linux_amd64.tar.gz

I think that for porchctl we probably should build it from source in the e2e tests to make sure we have the latest version. There are some small changes in porchctl between R2 and R3

@radoslawc
Copy link
Collaborator Author

/test bootstrap-integration

@radoslawc radoslawc requested review from efiacor and vjayaramrh June 20, 2024 14:31
@electrocucaracha
Copy link
Member

@radoslawc It seems like you missed the change on the porch client version. BTW, I suggest completing this issue in this release

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

This is great!

@liamfallon
Copy link
Member

/approve

@radoslawc
Copy link
Collaborator Author

@radoslawc It seems like you missed the change on the porch client version. BTW, I suggest completing this issue in this release

There's PR to make porchctl builds from main in progress here: nephio-project/porch#77 for now we didn't have them only those build from tags.

@liamfallon
Copy link
Member

/lgtm

@electrocucaracha
Copy link
Member

There's PR to make porchctl builds from main in progress here: nephio-project/porch#77 for now we didn't have them only those build from tags.

Ok, so don't forget to move some testing resources to the catalog to centralize the control of versions

/lgtm
/approve

@nephio-prow nephio-prow bot removed the lgtm label Jun 20, 2024
@liamfallon
Copy link
Member

/retest

@radoslawc
Copy link
Collaborator Author

/test e2e-oai-ubuntu-jammy

@radoslawc
Copy link
Collaborator Author

/test e2e-free5gc-ubuntu-focal

@liamfallon
Copy link
Member

/retest

1 similar comment
@liamfallon
Copy link
Member

/retest

@liamfallon
Copy link
Member

/retest-required

@liamfallon
Copy link
Member

/test e2e-free5gc-ubuntu-focal

@liamfallon
Copy link
Member

/test e2e-oai-ubuntu-jammy

@liamfallon
Copy link
Member

/test e2e-oai-fedora-34

@liamfallon
Copy link
Member

/approve
/lgtm

@nephio-prow nephio-prow bot added the lgtm label Jun 25, 2024
@liamfallon
Copy link
Member

/test bootstrap-integration

2 similar comments
@liamfallon
Copy link
Member

/test bootstrap-integration

@radoslawc
Copy link
Collaborator Author

/test bootstrap-integration

@electrocucaracha
Copy link
Member

@radoslawc @vjayaramrh @liamfallon there is an error on the bootstrap integration test that needs to be fixed. Please take time to review it.

 TASK [bootstrap : Ensure gtp5g kernel constraints] *****************************
fatal: [int-focal-vm-bootstrap-3299538048]: FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."} 

@liamfallon
Copy link
Member

@radoslawc @vjayaramrh @liamfallon there is an error on the bootstrap integration test that needs to be fixed. Please take time to review it.

 TASK [bootstrap : Ensure gtp5g kernel constraints] *****************************
fatal: [int-focal-vm-bootstrap-3299538048]: FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."} 

Thanks @electrocucaracha , we'll check it.

@nephio-prow nephio-prow bot removed the lgtm label Jun 25, 2024
Fix for FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."}
@radoslawc
Copy link
Collaborator Author

/test bootstrap-integration

@radoslawc
Copy link
Collaborator Author

@electrocucaracha @liamfallon now bootstrap-integration fails on:

TASK [Gathering Facts] *********************************************************
fatal: [int-focal-vm-bootstrap-659977273]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@34.170.197.210: Permission denied (publickey).", "unreachable": true}

Only change was removing curly braces like in https://github.com/nephio-project/test-infra/pull/278/files where it worked afterwards.

@electrocucaracha
Copy link
Member

@electrocucaracha @liamfallon now bootstrap-integration fails on:

TASK [Gathering Facts] *********************************************************
fatal: [int-focal-vm-bootstrap-659977273]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@34.170.197.210: Permission denied (publickey).", "unreachable": true}

Only change was removing curly braces like in https://github.com/nephio-project/test-infra/pull/278/files where it worked afterwards.

There is a tech debt on the integration tests, I'm not sure if it's conflicting with other existing VMs or sometimes GCP can't smoothly create those molecule instances. Usually those errors are gone in the second try, but definitely it's necessary to investigate the root cause

/test bootstrap-integration

@radoslawc
Copy link
Collaborator Author

/test bootstrap-integration

@liamfallon
Copy link
Member

/lgtm
/approve

@nephio-prow nephio-prow bot added the lgtm label Jun 25, 2024
Copy link
Contributor

nephio-prow bot commented Jun 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: electrocucaracha, liamfallon

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:
  • OWNERS [electrocucaracha,liamfallon]

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

@liamfallon
Copy link
Member

/test e2e-oai-ubuntu-jammy

@liamfallon
Copy link
Member

/test e2e-oai-fedora-34

1 similar comment
@liamfallon
Copy link
Member

/test e2e-oai-fedora-34

@liamfallon
Copy link
Member

/test e2e-oai-ubuntu-jammy

@liamfallon
Copy link
Member

/test e2e-oai-fedora-34
/test e2e-oai-ubuntu-jammy

@vjayaramrh
Copy link
Collaborator

/test e2e-oai-ubuntu-jammy

Copy link
Contributor

nephio-prow bot commented Jun 25, 2024

@radoslawc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
e2e-oai-fedora-34 d24412f link false /test e2e-oai-fedora-34

Full PR test history. Your PR dashboard.

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.

@nephio-prow nephio-prow bot merged commit 4c34808 into nephio-project:main Jun 25, 2024
7 of 8 checks passed
@electrocucaracha
Copy link
Member

@radoslawc @liamfallon @vjayaramrh be cautious to use retest prow commands, every error is an opportunity to improve the resiliency of the CI. Forcing some jobs can lead to future problems.

@liamfallon
Copy link
Member

@radoslawc @liamfallon @vjayaramrh be cautious to use retest prow commands, every error is an opportunity to improve the resiliency of the CI. Forcing some jobs can lead to future problems.

I opened this discussion:
nephio-project/nephio#774

dkosteck pushed a commit to vjayaramrh/test-infra that referenced this pull request Aug 15, 2024
* Switching e2e tests to run on main

* Adjusting defaults.env to use main

* Switching porchctl to latest binary build

* Update load-gtp5g-module.yml

Fix for FAILED! => {"msg": "The conditional check 'ansible_facts.kernel == \"5.0.0-23-generic\" or True' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants