Skip to content

CI: Functional CLI test keeps hanging on GitHub CI. #3091

Closed

Description

@JohnVillalovos

In the functional CLI job I keep seeing the test hanging/get stuck.

The last test it finishes is typically:
tests/functional/cli/test_cli.py::test_cli_does_not_print_token[subprocess] PASSED [ 22%]

The test that should be next is:
tests/functional/cli/test_cli_artifacts.py::test_cli_job_artifacts

Activity

  1. JohnVillalovos commented on Jan 21, 2025

    @JohnVillalovos
    MemberAuthor

    @nejch

    I think the job_with_artifacts fixture is failing. And it loops forever as it never gets job artifacts.

    Debug PR here: #3092

  2. JohnVillalovos commented on Jan 21, 2025

    @JohnVillalovos
    MemberAuthor

    The job that is being run by the CLI test fixture (job_with_artifacts) fails with the following error.

    Running with gitlab-runner 17.8.1 (a1fca00e) on python-gitlab-runner t1_p_wyG, system ID: r_6gTGeD1nqDhZ
    Resolving secrets
    Preparing the "shell" executor
    Using Shell (bash) executor...
    Preparing environment
    su: user gitlab-runner does not exist
    ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
    
  3. JohnVillalovos commented on Jan 21, 2025

    @JohnVillalovos
    MemberAuthor

    I have filed an issue about the missing user: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/38503

  4. added 3 commits that reference this issue on Jan 21, 2025
    285208c
    8cb5939
    553f5b0
  5. nejch commented on Jan 22, 2025

    @nejch
    Member

    Thanks a lot @JohnVillalovos! Seems like they've completely reworked the runner helper image, which is causing a lot of issues including this one.

  6. added a commit that references this issue on Jan 22, 2025
    2dda9dc
  7. locked as resolved and limited conversation to collaborators on Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions