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

Making ocp-wrapper compatable with kube-burner v1.9.6 #56

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Making ocp-wrapper compatable with kube-burner v1.9.6 #56

merged 3 commits into from
Apr 29, 2024

Conversation

vishnuchalla
Copy link
Contributor

@vishnuchalla vishnuchalla commented Apr 24, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Making code changes compatible with latest kb version .i.e. v1.9.6

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

@vishnuchalla vishnuchalla requested review from a team as code owners April 24, 2024 20:32
@josecastillolema
Copy link
Contributor

From the web-burner workload perspective lgtm

cmd/ocp.go Outdated Show resolved Hide resolved
custom-workload.go Outdated Show resolved Hide resolved
@vishnuchalla vishnuchalla requested a review from rsevilla87 April 25, 2024 13:00
cmd/ocp.go Outdated Show resolved Hide resolved
cmd/ocp.go Outdated Show resolved Hide resolved
@vishnuchalla vishnuchalla requested a review from rsevilla87 April 25, 2024 17:16
@afcollins
Copy link
Contributor

Thanks for doing this!

I believe with these changes, the documentation is incorrect.

While we are touching that section, the command oc sa new-token is deprecated. When you run it, it says to use oc create token instead. We should also include that change as part of the docs change.

Also, by hard-coding metricsDirectory in the job config, we are reverting some functionality to generate the local dir with the uuid in the file name. We should preserve that functionality so we are not overwriting the same dir on repeated runs.

      metricsDirectory: reporting-metrics

@afcollins
Copy link
Contributor

afcollins commented Apr 25, 2024

I looked and the appending uuid seems to be removed upstream in kube-burner#611 . I guess I missed that there, but it should be fixed before we merge this PR.

@afcollins afcollins changed the title Making ocp-wrapper compatable with latest kb Making ocp-wrapper compatable with kube-burner v.1.9.6 Apr 25, 2024
@afcollins afcollins changed the title Making ocp-wrapper compatable with kube-burner v.1.9.6 Making ocp-wrapper compatable with kube-burner v1.9.6 Apr 25, 2024
@vishnuchalla
Copy link
Contributor Author

vishnuchalla commented Apr 26, 2024

Thanks for doing this!

I believe with these changes, the documentation is incorrect.

While we are touching that section, the command oc sa new-token is deprecated. When you run it, it says to use oc create token instead. We should also include that change as part of the docs change.

Also, by hard-coding metricsDirectory in the job config, we are reverting some functionality to generate the local dir with the uuid in the file name. We should preserve that functionality so we are not overwriting the same dir on repeated runs.

      metricsDirectory: reporting-metrics

Thanks for all the inputs regarding docs @afcollins. Updated them accordingly.
Regarding metrics directory, I idea of this change is to leave it up to the user to provide a list of non-colliding metric directory names for their runs in local. Let me know if you have any concerns around this idea.

cc: @rsevilla87

@rsevilla87
Copy link
Member

rsevilla87 commented Apr 26, 2024

Thanks for doing this!
I believe with these changes, the documentation is incorrect.
While we are touching that section, the command oc sa new-token is deprecated. When you run it, it says to use oc create token instead. We should also include that change as part of the docs change.
Also, by hard-coding metricsDirectory in the job config, we are reverting some functionality to generate the local dir with the uuid in the file name. We should preserve that functionality so we are not overwriting the same dir on repeated runs.

      metricsDirectory: reporting-metrics

Thanks for all the inputs regarding docs @afcollins. Updated them accordingly. Regarding metrics directory, I idea of this change is to leave it up to the user to provide a list of non-colliding metric directory names for their runs in local. Let me know if you have any concerns around this idea.

cc: @rsevilla87

correct, that's the idea, but it doesn't work well though, all metrics get indexed to reporting-metrics, but that's due to a bug in the go-commons library...

Regarding the issue mentioned by @afcollins, we could conifgure metricsDirectory with something like the below to fix it.

      metricsDirectory: reporting-metrics-{{.UUID}}

@rsevilla87 rsevilla87 requested a review from afcollins April 26, 2024 10:00
@vishnuchalla
Copy link
Contributor Author

Thanks for doing this!
I believe with these changes, the documentation is incorrect.
While we are touching that section, the command oc sa new-token is deprecated. When you run it, it says to use oc create token instead. We should also include that change as part of the docs change.
Also, by hard-coding metricsDirectory in the job config, we are reverting some functionality to generate the local dir with the uuid in the file name. We should preserve that functionality so we are not overwriting the same dir on repeated runs.

      metricsDirectory: reporting-metrics

Thanks for all the inputs regarding docs @afcollins. Updated them accordingly. Regarding metrics directory, I idea of this change is to leave it up to the user to provide a list of non-colliding metric directory names for their runs in local. Let me know if you have any concerns around this idea.
cc: @rsevilla87

correct, that's the idea, but it doesn't work well though, all metrics get indexed to reporting-metrics, but that's due to a bug in the go-commons library...

Regarding the issue mentioned by @afcollins, we could conifgure metricsDirectory with something like the below to fix it.

      metricsDirectory: reporting-metrics-{{.UUID}}

Appending UUID at the end looks good to me, if we do not want any manual intervention at all.

@vishnuchalla vishnuchalla requested review from a team April 26, 2024 15:40
@vishnuchalla vishnuchalla removed request for a team, afcollins and rsevilla87 April 26, 2024 15:47
@vishnuchalla vishnuchalla requested review from afcollins, rsevilla87 and a team April 26, 2024 15:49
common.go Outdated Show resolved Hide resolved
Copy link
Contributor

@afcollins afcollins left a comment

Choose a reason for hiding this comment

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

Thanks for all the updates!

I think the split local dir doesn't work as expected.

Unless we have some requirement for it, I would ask for it to be removed instead of looking into fixing it. Personally, I am OK writing all metrics for a run to a single dir, and I think it simplifies the changes in this PR.

@rsevilla87
Copy link
Member

Hi, I created a PR in go-commons to fix/improve the indexers code to allow creating multiple indexers of the same kind cloud-bulldozer/go-commons#45

Copy link
Member

@rsevilla87 rsevilla87 left a comment

Choose a reason for hiding this comment

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

lgtm!

common.go Show resolved Hide resolved
@vishnuchalla vishnuchalla requested a review from afcollins April 29, 2024 15:27
Signed-off-by: KBOCPDocs <[email protected]>
Copy link
Contributor

@afcollins afcollins left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thank you for all the fixes for local indexing, Vishnu. :D

@afcollins afcollins merged commit 37882f0 into kube-burner:main Apr 29, 2024
4 checks passed
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.

5 participants