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

Add CI to run the tests for Go #1440

Merged

Conversation

tenzen-y
Copy link
Member

@tenzen-y tenzen-y commented Oct 7, 2021

Signed-off-by: tenzen-y yuki.iwai.tz@gmail.com

Add CI to run the tests for Go using GitHub Actions.

resolves: #1436

/assign
/cc @Jeffwan

Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@tenzen-y tenzen-y force-pushed the issue-1436-add-go-test-to-ci branch from ed99fe8 to ae72f61 Compare October 7, 2021 15:47
Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 7, 2021

/assign @Jeffwan

@tenzen-y tenzen-y changed the title [WIP] Add CI to run the tests for Go Add CI to run the tests for Go Oct 7, 2021
Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 7, 2021

Is it possible to change the repository name in coveralls.io from tf-operator to training-operator?

@Jeffwan
Copy link
Member

Jeffwan commented Oct 7, 2021

Is it possible to change the repository name in coveralls.io from tf-operator to training-operator?

@tenzen-y you mean migrate historical data? Seem training-operator has been synced there https://coveralls.io/github/kubeflow/training-operator. I doubt we can migrate previous data or not.

@Jeffwan
Copy link
Member

Jeffwan commented Oct 7, 2021

em.. seems after the rename, prow testing is disabled for some reason.
/cc @andreyvelich @kubeflow/wg-training-leads

@google-oss-robot google-oss-robot requested review from andreyvelich and a team October 7, 2021 18:46
@andreyvelich
Copy link
Member

em.. seems after the rename, prow testing is disabled for some reason. /cc @andreyvelich @kubeflow/wg-training-leads

Yes, we should merge this: kubeflow/testing#967.
Let's try to merge it and see if prow will use the new repo ?

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

Thank you for this enhancement @tenzen-y!
I left few comments.

.github/workflows/test-go.yaml Outdated Show resolved Hide resolved
.github/workflows/test-go.yaml Show resolved Hide resolved
@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

Is it possible to change the repository name in coveralls.io from tf-operator to training-operator?

@tenzen-y you mean migrate historical data? Seem training-operator has been synced there https://coveralls.io/github/kubeflow/training-operator. I doubt we can migrate previous data or not.

Thank you for looking into coveralls. @Jeffwan

Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@tenzen-y tenzen-y force-pushed the issue-1436-add-go-test-to-ci branch from d0b8579 to 92ec377 Compare October 8, 2021 08:01
@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

/test

@aws-kf-ci-bot
Copy link
Contributor

@Jeffwan: The /test command needs one or more targets.
The following commands are available to trigger jobs:

  • /test kubeflow-training-operator-presubmit

Use /test all to run all jobs.

In response to this:

/test

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.

@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

/test kubeflow-training-operator-presubmit

Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

@tenzen-y CI still needs some changes

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 720, in <module>
    final_result = main()
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 710, in main
    return run(args, file_handler)
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 338, in run
    ks_cmd = ks_util.get_ksonnet_cmd(w.app_dir)
  File "/src/kubeflow/testing/py/kubeflow/testing/ks_util.py", line 46, in get_ksonnet_cmd
    with open(app_yaml_file) as app_yaml:
FileNotFoundError: [Errno 2] No such file or directory: '/src/kubeflow/tf-operator/test/workflows/app.yaml'

@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

@tenzen-y CI still needs some changes

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 720, in <module>
    final_result = main()
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 710, in main
    return run(args, file_handler)
  File "/src/kubeflow/testing/py/kubeflow/testing/run_e2e_workflow.py", line 338, in run
    ks_cmd = ks_util.get_ksonnet_cmd(w.app_dir)
  File "/src/kubeflow/testing/py/kubeflow/testing/ks_util.py", line 46, in get_ksonnet_cmd
    with open(app_yaml_file) as app_yaml:
FileNotFoundError: [Errno 2] No such file or directory: '/src/kubeflow/tf-operator/test/workflows/app.yaml'

@Jeffwan I fixed this error in e65a9fe.

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

image
Can you help update tf reference here? (skip testServerImage)

@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

image Can you help update tf reference here? (skip testServerImage)

Sure.

Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
Signed-off-by: tenzen-y <yuki.iwai.tz@gmail.com>
@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

Great! @tenzen-y You make it! changes look good to me. hold it for one day for other reviewers @andreyvelich @kubeflow/wg-training-leads

/lgtm
/approve
/hold

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

This is great. Thank you for your contribution!

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jeffwan, tenzen-y, terrytangyuan

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:
  • OWNERS [Jeffwan,terrytangyuan]

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

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2021

Got approval from Terry and we can merge this.

/unhold

@tenzen-y
Copy link
Member Author

tenzen-y commented Oct 8, 2021

Thanks for the review! @Jeffwan @andreyvelich @terrytangyuan

@tenzen-y tenzen-y deleted the issue-1436-add-go-test-to-ci branch October 8, 2021 18:34
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.

Add Go test to CI
6 participants