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

UI: Fix unit tests #1977

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

elenzio9
Copy link
Contributor

@elenzio9 elenzio9 commented Oct 21, 2022

This PR fixes the Katib unit tests. In order to run the unit tests, try:

  • npm i to install the updated packages and after
  • npm run test to run the tests

Related PRs: kubeflow/kubeflow#6676, #1974 (review)

Signed-off-by: Elena Zioga elena@arrikto.com

@kimwnasptd
Copy link
Member

@johnugeorge @tenzen-y I see in the steps of the GH actions the following log

Requested labels: ubuntu-latest
Job defined at: kubeflow/katib/.github/workflows/test-go.yaml@refs/pull/1977/merge
Waiting for a runner to pick up this job...

Do you have any idea what this is?

I'll also assign myself for reviewing this one as well
/assign @kimwnasptd

@johnugeorge
Copy link
Member

Github actions seems to be slow in picking up new runners. Looks like a rate limit. This should be automatically triggered.

@johnugeorge
Copy link
Member

johnugeorge commented Oct 22, 2022

There is a formatting issue which is breaking other PRs as well.

https://github.com/kubeflow/katib/actions/runs/3301273112/jobs/5449891807

 Checking formatting...

 src/app/pages/experiment-details/experiment-details.module.ts
 src/app/pages/experiment-details/trials-graph-echarts/trials-graph-echarts.component.html
 src/app/pages/experiment-details/trials-graph-echarts/trials-graph-echarts.component.scss
 src/app/pages/experiment-details/trials-graph-echarts/trials-graph-echarts.module.ts
 Code style issues found in the above file(s). Forgot to run Prettier?

Can you fix this?

@elenzio9 Can you fix it in this PR or a separate PR?

@johnugeorge
Copy link
Member

Can you do a code rebase as well?

@kimwnasptd
Copy link
Member

I'd propose to have a separate PR just for the formatting, to unblock the rest of the PRs.

@johnugeorge we'll get to it ASAP

@elenzio9 elenzio9 force-pushed the katib-fix-unit-tests branch from 01d1abe to bce3b1c Compare October 24, 2022 08:03
@coveralls
Copy link

coveralls commented Oct 24, 2022

Coverage Status

Coverage remained the same at 73.431% when pulling 50c18b1 on arrikto:katib-fix-unit-tests into e444ea9 on kubeflow:master.

@orfeas-k orfeas-k mentioned this pull request Oct 24, 2022
@kimwnasptd
Copy link
Member

@elenzio9 now that #1979 is merged can you also rebase this branch on top of the latest master and ensure the code is also formatted as expected?

@elenzio9 elenzio9 force-pushed the katib-fix-unit-tests branch from bce3b1c to e280d8f Compare October 24, 2022 14:45
@elenzio9
Copy link
Contributor Author

@elenzio9 now that #1979 is merged can you also rebase this branch on top of the latest master and ensure the code is also formatted as expected?

I can confirm that the code is formatted. I also rebased the branch.

@kimwnasptd
Copy link
Member

@johnugeorge @tenzen-y I see a couple of unrelated tests failing. Do we have to re-run them or is there something else going on?

@johnugeorge
Copy link
Member

@kimwnasptd Tests passed

* Fix Katib unit tests.

Signed-off-by: Elena Zioga <elena@arrikto.com>
@elenzio9 elenzio9 force-pushed the katib-fix-unit-tests branch from e280d8f to 50c18b1 Compare October 25, 2022 08:27
@kimwnasptd
Copy link
Member

I tried out the PR locally and can confirm it all tests pass with npm run test.

Next up we'll take a look at updating the GH Action for the frontend to automatically run these tests for each PR https://github.com/kubeflow/katib/blob/master/.github/workflows/test-node.yaml

/lgtm
/approve

@google-oss-prow google-oss-prow bot added the lgtm label Oct 25, 2022
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elenzio9, kimwnasptd

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

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.

4 participants