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

chore: store taskRuns in rh_advisiories #1474

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jinqi7
Copy link
Contributor

@jinqi7 jinqi7 commented Dec 9, 2024

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue ticket number and link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

@openshift-ci openshift-ci bot requested review from mmalina and rhopp December 9, 2024 12:06
@jinqi7 jinqi7 requested a review from psturc December 9, 2024 12:06
@@ -239,7 +239,7 @@ func (t *TektonController) StorePipelineRun(prefix string, pipelineRun *pipeline

pipelineRunYaml, err := yaml.Marshal(pipelineRun)
if err != nil {
return err
g.GinkgoWriter.Printf("failed to store pipelineRun %s:%s: %s\n", pipelineRun.GetNamespace(), pipelineRun.GetName(), err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't you still return the error after this in case tests are checking if this function returns error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To help debug, ignore the errors to store as many logs as it could.

Copy link
Member

Choose a reason for hiding this comment

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

@jinqi7 would it be better to print out only this error instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to make the change in Line#236.

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 error message may be misleading. Changed it.

return err
}
if err := t.StoreTaskRun(taskRun.Name, taskRun); err != nil{
g.GinkgoWriter.Printf("failed to store taskRun %s:%s: %s\n", taskRun.GetNamespace(), taskRun.GetName(), err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

return the error here too, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's to print & ignore the error and store more content for debugging. Changed the message which may be misleading

@jinqi7
Copy link
Contributor Author

jinqi7 commented Dec 10, 2024

/retest

Copy link

openshift-ci bot commented Dec 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: psturc

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:

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

tests/release/pipelines/rh_advisories.go Show resolved Hide resolved
@jinqi7
Copy link
Contributor Author

jinqi7 commented Dec 11, 2024

/retest

1 similar comment
@jinqi7
Copy link
Contributor Author

jinqi7 commented Dec 11, 2024

/retest

@psturc
Copy link
Member

psturc commented Dec 11, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 11, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit b51de25 into konflux-ci:main Dec 11, 2024
13 checks passed
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.

3 participants