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

Sleep command isn't found in Github Runner #969

Open
alfeilex opened this issue Jan 21, 2025 · 2 comments · May be fixed by #976
Open

Sleep command isn't found in Github Runner #969

alfeilex opened this issue Jan 21, 2025 · 2 comments · May be fixed by #976
Assignees
Labels
bug Something isn't working

Comments

@alfeilex
Copy link
Member

The sleep command is not working in the build that leads to failing runs.

DEBUG:Running command 'src/test/resources/process-context/log-order.sh' using bash ...
INFO:src/test/resources/process-context/log-order.sh: line 3: sleep: command not found
INFO:err1
INFO:src/test/resources/process-context/log-order.sh: line 5: sleep: command not found
INFO:src/test/resources/process-context/log-order.sh: line 7: sleep: command not found
INFO:err2
INFO:out1
INFO:out2

https://github.com/devonfw/IDEasy/actions/runs/12885215624/job/35923165713

@alfeilex alfeilex added the bug Something isn't working label Jan 21, 2025
@alfeilex alfeilex self-assigned this Jan 21, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Jan 21, 2025
@alfeilex alfeilex changed the title Sleep command isn't found in build Sleep command isn't found in github build Jan 21, 2025
@alfeilex alfeilex linked a pull request Jan 21, 2025 that will close this issue
@alfeilex
Copy link
Member Author

alfeilex commented Jan 21, 2025

jobs:
  sleeper:
    name: test-sleep
    runs-on: ubuntu-latest
    steps:
      - name: checkout repo
        uses: actions/checkout@v3
      - run: |
          sleep 3
          ./sleep.sh
        shell: bash

I created my own worklflow to test the sleep command and it works fine. Maybe there is something in the execution of scripts inside mvn when we run junit tests. Also without shell: bash

@alfeilex
Copy link
Member Author

I tested:

  • upgrade checkout action (v3 and v4)
  • use shell: bash
  • tried out different shebangs (bin/bash, usr/bin/bash, usr/bin/env bash)
  • logged context.findBash() => bash in the runner

@alfeilex alfeilex moved this from 🆕 New to 🏗 In progress in IDEasy board Jan 21, 2025
alfeilex added a commit to alfeilex/IDEasy that referenced this issue Jan 21, 2025
@alfeilex alfeilex changed the title Sleep command isn't found in github build Sleep command isn't found in Github Runner Jan 21, 2025
jan-vcapgemini added a commit to alfeilex/IDEasy that referenced this issue Jan 24, 2025
alfeilex added a commit to alfeilex/IDEasy that referenced this issue Jan 29, 2025
alfeilex added a commit to alfeilex/IDEasy that referenced this issue Jan 29, 2025
alfeilex added a commit to alfeilex/IDEasy that referenced this issue Jan 29, 2025
alfeilex added a commit to alfeilex/IDEasy that referenced this issue Jan 29, 2025
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
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

1 participant