Skip to content

nesting group-endgroup workflow commands #802

@andreineculau

Description

@andreineculau

Describe the bug
Disclaimer: this might be a bug on the web frontend of Github Actions, but I have no idea where to report such bugs.

I am trying to use ::group:: and ::endgroup:: but the UI is confusing with nested groups. See details below.

To Reproduce

echo "::group::Wrapper"

echo "Wrapper begin"

echo "::group::Foo"
echo "Foo"
echo "::endgroup"

echo "Something"

echo "::group::Bar"
echo "Bar"
echo "::endgroup"

echo "Wrapper end"

echo "::endgroup::"

should be a reproducible snippet.

My actual build is https://github.com/rokmoln/support-firecloud/runs/1390151835?check_suite_focus=true#step:10:20

and the raw logs show

2020-11-12T11:49:27.8802160Z 11:49:27 [DO  ] Building...
2020-11-12T11:49:27.8805635Z ##[group]work-support-firecloud-support-firecloud-building
2020-11-12T11:49:27.8807942Z               > work-support-firecloud-support-firecloud-building
2020-11-12T11:49:27.8808756Z 
2020-11-12T11:49:27.8816470Z make[1]: Entering directory '/home/runner/work/support-firecloud/support-firecloud'
2020-11-12T11:49:28.1481071Z 
2020-11-12T11:49:28.1493809Z 11:49:28 [DO  ] Generating BUILD...
2020-11-12T11:49:28.1496163Z ##[group]work-support-firecloud-support-firecloud-generating-build
2020-11-12T11:49:28.1498510Z               > work-support-firecloud-support-firecloud-generating-build
2020-11-12T11:49:28.1499723Z 
2020-11-12T11:49:28.2640783Z 
2020-11-12T11:49:28.2643097Z               < work-support-firecloud-support-firecloud-generating-build
2020-11-12T11:49:28.2644640Z ##[endgroup]
2020-11-12T11:49:28.2656525Z 11:49:28 [DONE] Generating BUILD...
2020-11-12T11:49:28.2657112Z                 in 0 seconds
2020-11-12T11:49:28.2657435Z 
2020-11-12T11:49:28.4093908Z 
2020-11-12T11:49:28.4104975Z 11:49:28 [DO  ] Generating VERSION...
2020-11-12T11:49:28.4107301Z ##[group]work-support-firecloud-support-firecloud-generating-version
2020-11-12T11:49:28.4109658Z               > work-support-firecloud-support-firecloud-generating-version
2020-11-12T11:49:28.4111062Z 
2020-11-12T11:49:28.5241563Z 
2020-11-12T11:49:28.5243730Z               < work-support-firecloud-support-firecloud-generating-version
2020-11-12T11:49:28.5245349Z ##[endgroup]
2020-11-12T11:49:28.5257243Z 11:49:28 [DONE] Generating VERSION...
2020-11-12T11:49:28.5257839Z                 in 0 seconds
2020-11-12T11:49:28.5258388Z 
2020-11-12T11:49:28.5259812Z make[1]: Leaving directory '/home/runner/work/support-firecloud/support-firecloud'
2020-11-12T11:49:28.6347962Z 
2020-11-12T11:49:28.6349969Z               < work-support-firecloud-support-firecloud-building
2020-11-12T11:49:28.6351202Z ##[endgroup]
2020-11-12T11:49:28.6362789Z 11:49:28 [DONE] Building...
2020-11-12T11:49:28.6363358Z                 in 1 seconds

and it looks like the group/endgroup markers are set correctly.

Expected behavior
I expect groupings to be properly nested.

Runner Version and Platform

Version of your runner? 2.274.1

OS of the machine running the runner? Linux

What's not working?

It looks like the ##[group]work-support-firecloud-support-firecloud-generating-build (first nested group) acts as a ##[endgroup] for ##[group]work-support-firecloud-support-firecloud-building (the wrapper group).

Similarly the content after 2020-11-12T11:49:28.5257243Z 11:49:28 [DONE] Generating VERSION... and the following #endgroup# (the wrapper group) is not folded.

Screenshot 2020-11-12 at 13 18 33

Job Log Output

See above.

Runner and Worker's Diagnostic Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions