Skip to content

Conversation

camilamacedo86
Copy link
Collaborator

Description

Re-generate reports at 2021-07-04

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1026324419

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.849%

Totals Coverage Status
Change from base Build 1011262834: 0.0%
Covered Lines: 18
Relevant Lines: 2119

💛 - Coveralls

generate-testdata: generate-samples
generate-testdata:
docker login https://registry.redhat.io
make generate-samples
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this not working as a prerequisite? Is there something different/better about calling it explicitly? I think calling it this way will launch a 2nd make as a sub-task to run it.

Copy link
Collaborator Author

@camilamacedo86 camilamacedo86 Jul 13, 2021

Choose a reason for hiding this comment

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

I add the docker login there to make it easier for others to understand and to force that is a pre-requirement for the makefile target. The go mod will try to log in as well but not the sample. The motivation here is:

  • I do not know how it works
  • I know that I need to run this target
  • Then, it will fail immediately if the person has not the login and will be easier to get this requirement

Copy link
Collaborator

Choose a reason for hiding this comment

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

Those seem like reasonable justifications to doing it this way. 👍

command := exec.Command("mkdir", dashboardPath)
_, err = pkg.RunCommand(command)
if err != nil {
log.Warnf("running command :%s", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like ERROR level not WARN, kinda dead in the water if it can't mkdir.

Copy link
Collaborator Author

@camilamacedo86 camilamacedo86 Jul 13, 2021

Choose a reason for hiding this comment

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

We call that in chan and should no fail. If the dir exist then, it does not need to be created.

These silly fixes are for you folks to be able to run the audit as well in a straightforward way. If we remove the dir or raise an error here the reports will not be gen when you call the make testdata-generate for that. Note that it was a comment before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, okay, got it. sounds reasonable

@bentito
Copy link
Collaborator

bentito commented Jul 13, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2021
@bentito
Copy link
Collaborator

bentito commented Jul 13, 2021

/approve

@camilamacedo86 camilamacedo86 merged commit 1db9c90 into operator-framework:main Jul 13, 2021
@camilamacedo86 camilamacedo86 deleted the generate-reports branch July 13, 2021 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants