Skip to content

fix #5194: deflaking ScaleIT and addressing timing issue in visitResources #5198

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

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

shawkins
Copy link
Contributor

@shawkins shawkins commented Jun 1, 2023

Description

Fix #5194

Minor change in ScaleIT to ensure the api metadata lookup is ready, also updating visitResources to perform null checks

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@shawkins shawkins changed the title fix #5194: deflaking ScaleIT by ensuring api metadata lookup succeeds fix #5194: deflaking ScaleIT and addressing timing issue in visitResources Jun 1, 2023
@shawkins
Copy link
Contributor Author

shawkins commented Jun 5, 2023

A couple of times I've seen https://github.com/fabric8io/kubernetes-client/actions/runs/5179269358/jobs/9332264916?pr=5206#step:6:450 where the expected group count does not match the actual number visited.

I'll update this pr to be more diagnostic for that - it's not clear just from the failure which group is being skipped, or how we should be tolerant to that.

Comment on lines +739 to +740
APIGroupList apiGroups = getApiGroups();
if (apiGroups != null) {
Copy link
Member

Choose a reason for hiding this comment

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

How come this may return null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The underlying rest call is allowed to return null on a 404. However that isn't expected here. It could be accounted for with an assertion instead.

@manusa manusa added this to the 6.7.2 milestone Jun 15, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

5.9% 5.9% Coverage
0.0% 0.0% Duplication

@manusa manusa merged commit 2641818 into fabric8io:master Jun 15, 2023
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.

Failure in ScaleIT
2 participants