Skip to content

testgrid-config-generator: Correct some faulty assumptions#193

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
smarterclayton:testgrid_2
Oct 3, 2019
Merged

testgrid-config-generator: Correct some faulty assumptions#193
openshift-merge-robot merged 1 commit into
openshift:masterfrom
smarterclayton:testgrid_2

Conversation

@smarterclayton

@smarterclayton smarterclayton commented Oct 3, 2019

Copy link
Copy Markdown
Contributor

The publish steps inside the release config are not good indicators of ocp or okd. Instead, the naming conventions chosen by the release should be used. -openshift-origin- means okd in a job, and X.Y.Z-0.ci for release name also means okd. The okd release streams are downstream of CI and can be ignored for now.

Fix a bug where the periodics were added to both dashboards by checking for the correct convention. Also revert the run.sh script to be correct and add a generate mode.

/assign @stevekuznetsov

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 3, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 3, 2019
The publish steps inside the release config are not good indicators
of ocp or okd. Instead, the naming conventions chosen by the release
should be used.

Fix a bug where the periodics were added to both dashboards by
checking for the correct convention. Also revert the run.sh script
to be correct.
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 3, 2019
logrus.Infof("release is not recognized: %s", releaseConfig.Name)
return nil
}
m := reVersion.FindStringSubmatch(releaseConfig.Name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have to? Ugh.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the publish tags aren't guaranteed to match releases, names are

@stevekuznetsov stevekuznetsov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't like fragile regex-based implementations ... why isn't the output check correct?

@smarterclayton

Copy link
Copy Markdown
Contributor Author

Tag publishing doesn't have anything to do with release versioning - we have examples where we would publish to 4.3 from other places, and OKD is just accidental. Publishing is a pipeline thing, not identifying what release this is.

Names define what releases things are.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

The regex is less fragile than the publishing thing, because the publishing thing should be able to change at will to target other locations.

@stevekuznetsov

Copy link
Copy Markdown
Contributor

yuck/10

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 3, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton, stevekuznetsov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [smarterclayton,stevekuznetsov]

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

@openshift-merge-robot openshift-merge-robot merged commit cc16c6f into openshift:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants