Skip to content

Conversation

vladcristi
Copy link
Member

@vladcristi vladcristi commented Oct 10, 2025

What this PR does / why we need it:
This PR contains fixes for reconciliation errors caused by some changes from #456:

  • in nsg_reconciler.go and subnet_reconciler.go kept the reconcile function the same it was before until we will figure out how to use ptr.toNSGSlice and ptr.toSubnetSlice without causing reconciliation errors
  • added in other functions some ptr.toString

@vladcristi vladcristi requested a review from joekr October 10, 2025 15:55
@vladcristi vladcristi self-assigned this Oct 10, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 10, 2025
@vladcristi vladcristi requested a review from dranicu October 10, 2025 16:04
Copy link
Member

@joekr joekr left a comment

Choose a reason for hiding this comment

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

Do you mind in the PR comment detailing what issues are being fixed? I'm just trying to understand some of the changes better and I think having them in the main PR body would help me.

@vladcristi
Copy link
Member Author

vladcristi commented Oct 16, 2025

Unit tests output:
github.com/oracle/cluster-api-provider-oci coverage: 0.0% of statements
ok github.com/oracle/cluster-api-provider-oci/api/v1beta1 50.606s coverage: 23.3% of statements
ok github.com/oracle/cluster-api-provider-oci/api/v1beta2 0.032s coverage: 16.0% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/config 0.036s coverage: 86.1% of statements
github.com/oracle/cluster-api-provider-oci/cloud/metrics coverage: 0.0% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/ociutil 0.010s coverage: 15.9% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/ociutil/ptr 0.022s coverage: 100.0% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/scope 23.946s coverage: 74.3% of statements
github.com/oracle/cluster-api-provider-oci/cloud/scope/mocks coverage: 0.0% of statements
github.com/oracle/cluster-api-provider-oci/cloud/services/base coverage: 0.0% of statements
github.com/oracle/cluster-api-provider-oci/cloud/services/base/mock_base coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/compute [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/compute/mock_compute coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement/mock_computemanagement coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine/mock_containerengine coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/identity [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/identity/mock_identity coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer/mock_lb coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer/mock_nlb coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/vcn [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/vcn/mock_vcn coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/services/workrequests [no test files]
github.com/oracle/cluster-api-provider-oci/cloud/services/workrequests/mock_workrequests coverage: 0.0% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/util 0.177s coverage: 60.5% of statements
ok github.com/oracle/cluster-api-provider-oci/controllers 2.822s coverage: 59.2% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/api/v1beta1 13.700s coverage: 15.3% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/api/v1beta2 0.027s coverage: 5.8% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/controllers 1.275s coverage: 56.3% of statements
github.com/oracle/cluster-api-provider-oci/feature coverage: 0.0% of statements
? github.com/oracle/cluster-api-provider-oci/version [no test files]
grep -v 'zz_generated' coverage.out > coverage_filtered.out

e2e tests output:
Ran 9 of 31 Specs in 3970.481 seconds
SUCCESS! -- 9 Passed | 0 Failed | 0 Pending | 22 Skipped

@vladcristi vladcristi requested a review from joekr October 16, 2025 16:01
@vladcristi vladcristi merged commit 1868286 into oracle:main Oct 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants