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

test: simplify go-test #301

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

satoru-takeuchi
Copy link
Member

Remove duplicated description between the default configuration and the custom namespace configuration.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

run: |
OP_NS_OPT=""
CLUSTER_NS_OPT=""
test -n "${{ input.op-ns }}" && OP_NS_OPT="--operator-namespace ${{ input.op-ns }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
test -n "${{ input.op-ns }}" && OP_NS_OPT="--operator-namespace ${{ input.op-ns }}"
test -n "${{ input.op-ns }}" && OP_NS_OPT="--operator-namespace ${{ input.op-ns }}"

test -n here is for?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's old code. OP_NS_OPT should be set iff input.op-ns isn't rook-ceph. CLUSTER_NS_OPT should also be set iff input.cluster-ns isn't rook-ceph. I'll fix them.

Copy link
Collaborator

@subhamkrai subhamkrai left a comment

Choose a reason for hiding this comment

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

also CI is not running please check that also @satoru-takeuchi thanks

@satoru-takeuchi satoru-takeuchi force-pushed the test-simplify-go-test branch from f8e8b7b to 6e2b741 Compare June 19, 2024 08:29
@satoru-takeuchi satoru-takeuchi marked this pull request as draft June 19, 2024 08:31
@satoru-takeuchi satoru-takeuchi force-pushed the test-simplify-go-test branch from 6e2b741 to d8b362a Compare June 19, 2024 08:47
@satoru-takeuchi satoru-takeuchi marked this pull request as ready for review June 19, 2024 08:49
@satoru-takeuchi satoru-takeuchi changed the title test: simplify go-test DNM: test: simplify go-test Jun 19, 2024
@satoru-takeuchi satoru-takeuchi force-pushed the test-simplify-go-test branch 4 times, most recently from 7e99e04 to 956e28a Compare June 20, 2024 01:10
@satoru-takeuchi satoru-takeuchi marked this pull request as draft June 20, 2024 01:11
@satoru-takeuchi satoru-takeuchi force-pushed the test-simplify-go-test branch 12 times, most recently from 2a40197 to ca36048 Compare June 26, 2024 06:27
@satoru-takeuchi satoru-takeuchi force-pushed the test-simplify-go-test branch 2 times, most recently from 2a841d0 to 5a3891c Compare July 5, 2024 05:48
@satoru-takeuchi satoru-takeuchi marked this pull request as ready for review July 5, 2024 06:08
@satoru-takeuchi satoru-takeuchi changed the title DNM: test: simplify go-test test: simplify go-test Jul 5, 2024
Copy link
Collaborator

@subhamkrai subhamkrai left a comment

Choose a reason for hiding this comment

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

we want one of the CI runs to run on a different namespace than rook-ceph

run: tests/github-action-helper.sh deploy_rook

- name: deploy rook cluster in custom namespace
shell: bash --noprofile --norc -eo pipefail -x {0}
if: inputs.op-ns != '' || inputs.cluster-ns != ''
if: inputs.op-ns != 'rook-ceph' || inputs.cluster-ns != 'rook-ceph'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if: inputs.op-ns != 'rook-ceph' || inputs.cluster-ns != 'rook-ceph'
if: inputs.op-ns != '=test-operator' || inputs.cluster-ns != '=test-cluster'

Copy link
Member Author

Choose a reason for hiding this comment

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

You meant if: inputs.op-ns == 'test-operator' || inputs.cluster-ns == 'test-cluster'?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, typo above

Remove duplicated description between the default configuration
and the custom namespace configuration.

Signed-off-by: Satoru Takeuchi <[email protected]>
Copy link
Collaborator

@subhamkrai subhamkrai left a comment

Choose a reason for hiding this comment

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

lgtm

@subhamkrai subhamkrai merged commit bd5cea1 into rook:master Jul 8, 2024
6 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.

2 participants