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

Composite actions logs are out of order #664

Closed
hross opened this issue Aug 17, 2020 · 5 comments
Closed

Composite actions logs are out of order #664

hross opened this issue Aug 17, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@hross
Copy link
Contributor

hross commented Aug 17, 2020

The logs for composite actions appear to be out of order:

https://twitter.com/crazyws/status/1293525542810025991, https://github.com/crazy-max/ghaction-dump-context/actions

We should put them in the correct order.

@hross hross added the bug Something isn't working label Aug 17, 2020
@thboop
Copy link
Collaborator

thboop commented Aug 18, 2021

Live logs are best effort, and can appear out of order at some times. Will reopen if we see this often.

@jk2K
Copy link
Contributor

jk2K commented Jan 20, 2022

I have the same problem

my runner is self hosted,

runner version: 2.286.0
os: CentOS Linux release 7.4.1708 (Core)

yml

name: Demo27
on:
  workflow_dispatch:
    inputs:
      start:
        description: manual start
        default: '0'
jobs:
  job1:
    runs-on: test1
    steps:
      - id: step1
        run: |
          pwd

          echo "${{ github.workspace }}"
          rm -rf "${{ github.workspace }}"/*

          wget https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh

          echo "sudo ls" > install.sh

          bash install.sh

out of order

image

normal

image

a bit random, I did not find the pattern of recurrence of the problem

@vincerubinetti
Copy link

vincerubinetti commented Oct 26, 2022

Not sure if related, but I'm actually getting logs inside of other logs, i.e. "interleaving". It seems to only happen with things that log over multiple lines, like multi-line strings and nested objects.

List:
[
  {
    "key": "value",
    Multi-line error line 1
    Multi-line error line 2
/home/runner/work/blah.js:94
    "key": "value",
  },
console.log("List:");
console.log(list);

console.error("Multi-line error line 1 \nMulti-line error line 2"

Doesn't happen at all when running Node locally.

@wyot1
Copy link

wyot1 commented Jun 12, 2023

Maybe re-open this issue?

I also noticed this peculiarity just now.

Even when executing a single bash script with the following contents:

echo foo
command_do_something
echo bar

It's possible to be out of order, which seems very strange. Not the live log, the plain one after the fact.

image

That log message should be above the whole thing. It appears out of nowhere.

Now buffering makes sense, but how come the same one can randomly mix itself up?

@AllysonPemberton-UnlikelyAI

+1 also seeing this issue and it makes it very hard to debug our failing tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants