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

Step Order value for Post Steps can be incorrect if a job contains composite actions #1657

Open
thboop opened this issue Feb 3, 2022 · 6 comments
Labels
bug Something isn't working composite keep Label can be added as soon as we are sure the work on the issue is necessary Runner Bug Bug fix scope to the runner

Comments

@thboop
Copy link
Collaborator

thboop commented Feb 3, 2022

Describe the bug
We provide an Order field on steps that dictate what order the steps ran in , this helps the UI populate the step order. For jobs with a composite action and a number of post job steps, occasionally that order field can collide on post steps. This is not intentional, but is typically handled by server side code to figure out what order the steps should be in.

To Reproduce
Create an action in local_action/action.yml

name: test
description: test
runs:
  using: composite
  steps:
    - name: ok
      shell: bash
      run: |
        echo "OK"

Create a workflow

name: CI
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  workflow_dispatch:

jobs:
  build:
    runs-on: [ self-hosted ]
    steps:
      - uses: actions/checkout@v2
      - uses: ./local_action
      - uses: actions/setup-node@v2

Both of the post steps with end with order: 10, this is because our composite action handler is actually iterating the order on steps despite it not being a step with a timeline record that is sent back to the server. We should probably use a dummy childTimelineRecord order for Embedded steps to fix this.

Expected behavior
A clear and concise description of what you expected to happen.

Runner Version and Platform

2.287.1
All OS

@thboop thboop added bug Something isn't working Runner Bug Bug fix scope to the runner labels Feb 3, 2022
@nikola-jokic
Copy link
Contributor

Hi @thboop,

Thanks for filing this issue! I am reproducing it now and I will get back to you as soon as possible!

@Jaynor
Copy link

Jaynor commented Mar 1, 2022

Hi @nikola-jokic
May I ask you if there is an update on this?

@nikola-jokic
Copy link
Contributor

Hey @Jaynor,

We have a PR fixing this problem which is currently in review.

@Jaynor
Copy link

Jaynor commented Mar 2, 2022

@nikola-jokic Thank you so much for the update!

Copy link
Contributor

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label May 20, 2024
@nikola-jokic nikola-jokic added keep Label can be added as soon as we are sure the work on the issue is necessary and removed Stale labels May 20, 2024
@ruffsl
Copy link

ruffsl commented May 20, 2024

@github-actions , bad bot! say away! This remains still quite the blocker for:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working composite keep Label can be added as soon as we are sure the work on the issue is necessary Runner Bug Bug fix scope to the runner
Projects
None yet
Development

No branches or pull requests

5 participants