Skip to content

WIP: Pr1442#1464

Closed
pliurh wants to merge 10 commits intoopenshift:mainfrom
pliurh:pr1442
Closed

WIP: Pr1442#1464
pliurh wants to merge 10 commits intoopenshift:mainfrom
pliurh:pr1442

Conversation

@pliurh
Copy link
Contributor

@pliurh pliurh commented Mar 8, 2023

Which issue(s) this PR addresses:

Closes #

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 8, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 8, 2023
@openshift-ci openshift-ci bot requested review from ggiguash and oglok March 8, 2023 07:25
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 8, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pliurh
Once this PR has been reviewed and has the lgtm label, please assign dhellmann for approval. For more information see the Kubernetes Code Review Process.

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

Details 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

dhellmann added 10 commits March 8, 2023 07:45
…uctures

Also introduces assert package in the test code for easier diagnosis
of unit test failures.
Move data structures and related functions into their own files.
This change streamlines the reading and validation functions so that
it is easier to get a Config instance with the defaults or with valid
values read from a file.

A new convenience function for loading the active configuration,
ignoring a missing configuration file, is added.

The k8s YAML parser is used to read the config file, instead of the
default parser, to ensure support for `json:"-"` directives to ignore
fields in the input.

The unit tests are updated to parse input config instead of using a
data structure. This more accurately simulates what happens when the
real program reads the config if only part of the file is populated,
and clarifies which part of the config each test scenario is
checking. It also allows for more, smaller, scenarios to isolate
configuration validation and defaulting failures.

The validation for node name changing is only relevant when starting
the server, so that is moved to the run command implementation to make
the unit tests for config easier to understand.

The show-config command implementation no longer needs to map between
multiple configuration data structures, so streamline that code.
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 8, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 8, 2023

@pliurh: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-router-smoke-test 2d193c3 link false /test e2e-router-smoke-test
ci/prow/e2e-reboot 2d193c3 link true /test e2e-reboot
ci/prow/e2e-openshift-conformance-reduced 2d193c3 link true /test e2e-openshift-conformance-reduced

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants