-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ci: better naming for various steps/jobs #11752
Conversation
055865c
to
a254826
Compare
Well that's annoying and confusing 😕
I don't know if this is actually possible 😐 This action hasn't been run in 10 months but still appears in the list. So not sure that we can actually do anything about this, it's a GitHub issue 😕 |
That's right, this is a GitHub issue and discussions are continuing, but there is no response from GitHub. So the only way to delete the meaningless list from the workflow list is to delete all logs. |
I often look at the actions tab, and the problem when the meaningless list becomes large is that you have to go in to check which of the workflows with the same name is currently in use. |
I doubt I have permissions to do this, but maybe an Approver does.
|
Even if a lot of logs are piled up, they cannot be accessed after 90 days or more, so I think it is okay to delete the existing logs because they become meaningless after 90 days after the 90-day pr is applied. |
If this PR is merged, I would say it would be ok to delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unnecessary changes
I would disagree that these are unnecessary. I had several iterations and trial-and-error testing on this, as can be seen in the commit log and first two comments. It seemed like you mostly didn't like the reordering and may have misinterpreted those as removals? Per my opening comment, that was a consistency change:
would be great if we had an automated formatter to sort fields in the same order, but I'm not sure that exists, so did so manually for now. Same as in-line comment |
ah poop looks like this already ended up conflicting with #11782 (and another PR I think?). That was one of the reasons I asked for reviews over Slack as renames and reorderings can be really easy to conflict with 😭 |
- partly inspired by d88795d - as well as seeing users be confused by some steps - `git diff --exit-code` had some confusion in particular - I personally did not even realize that the steps after an E2E test failure were for debugging purposes - GH runs some post action hooks etc, so thought that was just clean-up or something - and me just reading more closely and wanting better descriptions - add names to more steps & jobs in GH Actions Workflows - specific names for all `git diff --exit-code` as per above - names for Docs GH Pages workflow - names PR Title check workflow - names for Snyk dependency scans workflow - CI workflow names: - all E2E test failure debugging steps per above - add a "get" (as in `kubectl get`) in front of the ones that just log out a resource for clarity as well - Java and Python SDK set-up/install steps - a few other clarifications / improvements - additions where there were no names - also add some new lines and comments in a few places for clarity & readability - reordering of fields - follow a consistent order of `name` -> `if` -> `needs` - then `uses`, `steps`, or `run` depending on the context Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- longer names at the top-level of the GH Workflow or Job don't look very nice - GH by default shows both names in PRs with a slash separator, so it gets quite long and hard to read in the already tiny PR checks space - so shorten, remove, or move to step names - also missed some `if`s ordering Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- it runs on all PRs (to `master`), not just on `gh-pages` - so clarify this - and it's `name` is already "Docs" Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- apparently required checks match on the `name` and not the key 😕 - could change required checks to match but that would break other PRs etc etc - so instead just revert these changes - these two in particular did not add altogether much either Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
- popped up indirectly in code review -- I myself thought that `describe` is more explicit that it's using `kubectl` - `get` as a word is much more ambiguous Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
d53e4aa
to
749b84a
Compare
Rebased and fixed merge conflicts! fingers crossed those are the last ones before this get merged 🤞 |
Build failed |
Yea docs just timed out on checkout. That's happened a few times recently in CI actually. It's a known issue on GH Actions (and is actually the primary purpose of the retry action). But my changes don't affect either of those, so those are flakes in context. I can do an empty commit but I was hoping you could retry those @terrytangyuan |
one of the flakey hooks tests is failing now 😕 |
Motivation
git diff --exit-code
had some confusion in particularModifications
add names to more steps & jobs in GH Actions Workflows
git diff --exit-code
as per abovekubectl get
) in front of the ones that just log out a resource for clarity as wellalso add some new lines and comments in a few places for clarity & readability
reordering of fields
name
->if
->needs
uses
,steps
, orrun
depending on the contextVerification