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 a CI step to avoid running the tmate session on the self-hosted machine #2529

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

dashanji
Copy link
Collaborator

What do these changes do?

As titled.

Related issue number

Fix #2528.

@dashanji dashanji force-pushed the avoid-tmate-operation branch 4 times, most recently from a5aca7a to 52594a3 Compare March 16, 2023 05:55
@dashanji dashanji marked this pull request as draft March 16, 2023 06:28
Copy link
Collaborator

@sighingnow sighingnow left a comment

Choose a reason for hiding this comment

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

LGTM.

@dashanji
Copy link
Collaborator Author

Wait for testing here.

@@ -23,6 +23,12 @@ jobs:
gaia-test:
runs-on: [self-hosted, manylinux2014]
steps:
- name: Detect the tmate session
if: "jobs.gaia-test.steps[*].uses == 'mxschmitt/action-tmate@*'"
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we use '*/action-tmate'?
Since mxschmitt is not the only one that provides action-tmate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Make sense to me.

@dashanji dashanji force-pushed the avoid-tmate-operation branch 2 times, most recently from 1b50d66 to 68e1730 Compare March 19, 2023 09:36
@dashanji dashanji marked this pull request as ready for review March 19, 2023 09:41
@dashanji
Copy link
Collaborator Author

From the github steps context, we can't get the info of steps that wait for running. So use a static code check here.

@codecov-commenter
Copy link

Codecov Report

Merging #2529 (68e1730) into main (ff287e4) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2529   +/-   ##
=======================================
  Coverage   39.88%   39.88%           
=======================================
  Files          88       88           
  Lines        9814     9814           
=======================================
  Hits         3914     3914           
  Misses       5900     5900           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff287e4...68e1730. Read the comment docs.

@@ -50,6 +50,12 @@ jobs:
k8s-test:
runs-on: [self-hosted, ubuntu2004]
steps:
- name: Detect the tmate session
if: "jobs.k8s-test.steps[*].uses == 'mxschmitt/action-tmate@*'"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this is still use the context while others use grep

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My bad. Thanks for catching this.

Copy link
Collaborator

@sighingnow sighingnow left a comment

Choose a reason for hiding this comment

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

k8s-ci.yaml and local-ci.yaml: put the check to changes job as others will depends on that to avoid duplication so many times..

…achine.

Signed-off-by: Ye Cao <caoye.cao@alibaba-inc.com>
@dashanji
Copy link
Collaborator Author

k8s-ci.yaml and local-ci.yaml: put the check to changes job as others will depends on that to avoid duplication so many times..

Addressed.

@sighingnow sighingnow merged commit 8b4103f into alibaba:main Mar 20, 2023
@dashanji dashanji deleted the avoid-tmate-operation branch March 20, 2023 03:22
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.

Add a ci step to avoid tmate operations on self-hosted machines
4 participants