-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BREAKING] refactor logger #2552
base: master
Are you sure you want to change the base?
[BREAKING] refactor logger #2552
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2552 +/- ##
==========================================
+ Coverage 61.56% 68.74% +7.18%
==========================================
Files 53 71 +18
Lines 9002 10959 +1957
==========================================
+ Hits 5542 7534 +1992
+ Misses 3020 2859 -161
- Partials 440 566 +126 ☔ View full report in Codecov by Sentry. |
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.
I tested the changes with the extension and they work. I see we now have stepResult
for setup and complete job steps. Do you think this PR can contain the other 2 items mentioned in the linked issue:
-
stepResult
for pre stage - Message for skipped jobs/steps
Isn't it partially here? you need to use Line 97 in 9c7f103
For jobs n/a I had fixed that the result is skipped, but I didn't think about the logger at that time.
Maybe debug this?, technically you should have this in the log Line 64 in 9c7f103
I noticed some log messages are not scoped in via this function in pre, like downloading the action aka (pre pre step, yes this get's weird, and it is) |
Job skipped log is also on debug level only and needs verbose flag Line 788 in 9c7f103
|
@ChristopherHX I had a try with the following workflow: name: Sample
on:
push:
branches: ["main"]
jobs:
cli:
name: CLI
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org' This has both a |
No this nodejs action has no pre step, the logger might make you believe this is the case. This action has a pre step: https://github.com/nektos/act-test-actions/tree/main/js-with-pre-and-post-step Downloading the action is needed to check if it has a pre step, those log messages use the same log fields as the pre step log messages. I wouldn't add this to this change either way |
At the moment, is there a way to properly determine when there is a real pre step? I feel that it would make more sense for there to be a different log type to avoid this issue. What do you think? And can this be implemented easily? |
Checking for Runner.Client logs everything as
..., moving downloading actions this into the setup job step makes more sense for me to align with actions/runner |
I agree, this makes the most sense. |
…s-to-output-setup-clean-and-pre-stage-step-status
Set up job and Complete job are now steps in json logs
BREAKING this can break my own embedded use cases
@SanjulaGanepola I have no plan for this PR to land before 6 pending PR's including breaking changes, since this has huge impact for github-act-runner or even act_runner of gitea.