Skip to content

ci/GHA: fix Dockerfile failing after Ubuntu package update - #1400

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:test-ubuntu-autotools-fallout
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:test-ubuntu-autotools-fallout

Conversation

@vszakats

@vszakats vszakats commented May 31, 2024 •

Copy link
Copy Markdown
Member

Likely due an upstream Ubuntu package update (requiring an apt-get
install call beforehand), tests run via autotools started failing with
no change in the libssh2 repo:

FAIL: test_aa_warmup
====================

Error running command 'docker build --quiet -t libssh2/openssh_server %s' (exit 256): Dockerfile:10
--------------------
   8 |      && apt-get clean \
   9 |      && rm -rf /var/lib/apt/lists/*
  10 | >>> RUN mkdir /var/run/sshd
  11 |.....
  12 |     # Chmodding because, when building on Windows, files are copied in with
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir /var/run/sshd" did not complete successfully: exit code: 1

Failed to build docker image
Cannot stop session - none started
Cannot stop container - none started
Command: docker build --quiet -t libssh2/openssh_server ../../tests/openssh_server
FAIL test_aa_warmup (exit status: 1)

Ref: https://github.com/libssh2/libssh2/actions/runs/9322194756/job/25662748095#step:11:390

Fix it by skipping mkdir if /var/run/sshd already exists.

(Why cmake-based jobs aren't affected, I don't know.)

Ref: 50143d5#commitcomment-142560875
Closes #1400

@vszakats
vszakats marked this pull request as draft May 31, 2024 15:42
Likely due an upstream Ubuntu package update (requiring an apt-get
install call beforehand), tests run via autotools started failing with
no change in the libssh2 repo:
```
FAIL: test_aa_warmup
====================

Error running command 'docker build --quiet -t libssh2/openssh_server %s' (exit 256): Dockerfile:10
--------------------
   8 |      && apt-get clean \
   9 |      && rm -rf /var/lib/apt/lists/*
  10 | >>> RUN mkdir /var/run/sshd
  11 |
  12 |     # Chmodding because, when building on Windows, files are copied in with
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir /var/run/sshd" did not complete successfully: exit code: 1

Failed to build docker image
Cannot stop session - none started
Cannot stop container - none started
Command: docker build --quiet -t libssh2/openssh_server ../../tests/openssh_server
FAIL test_aa_warmup (exit status: 1)
```
Ref: https://github.com/libssh2/libssh2/actions/runs/9322194756/job/25662748095#step:11:390

Fix it by skipping `mkdir` if `/var/run/sshd` already exists.

(Why cmake-based jobs aren't affected, I don't know.)

Ref: libssh2@50143d5
Closes libssh2#1400
@vszakats vszakats changed the title Test ubuntu autotools fallout ci/GHA: fix Dockerfile failing after Ubuntu package update May 31, 2024
@vszakats vszakats added the build label May 31, 2024
@vszakats
vszakats force-pushed the test-ubuntu-autotools-fallout branch from 73b10ce to e8990fb Compare May 31, 2024 18:09
@vszakats
vszakats marked this pull request as ready for review May 31, 2024 19:20
@vszakats vszakats closed this in 839bb84 May 31, 2024
@vszakats
vszakats deleted the test-ubuntu-autotools-fallout branch May 31, 2024 19:22
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Likely due an upstream Ubuntu package update (requiring an apt-get
install call beforehand), tests run via autotools started failing with
no change in the libssh2 repo:
```
FAIL: test_aa_warmup
====================

Error running command 'docker build --quiet -t libssh2/openssh_server %s' (exit 256): Dockerfile:10
--------------------
   8 |      && apt-get clean \
   9 |      && rm -rf /var/lib/apt/lists/*
  10 | >>> RUN mkdir /var/run/sshd
  11 |
  12 |     # Chmodding because, when building on Windows, files are copied in with
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir /var/run/sshd" did not complete successfully: exit code: 1

Failed to build docker image
Cannot stop session - none started
Cannot stop container - none started
Command: docker build --quiet -t libssh2/openssh_server ../../tests/openssh_server
FAIL test_aa_warmup (exit status: 1)
```
Ref: https://github.com/libssh2/libssh2/actions/runs/9322194756/job/25662748095#step:11:390

Fix it by skipping `mkdir` if `/var/run/sshd` already exists.

(Why cmake-based jobs aren't affected, I don't know.)

Ref: libssh2@50143d5#commitcomment-142560875
Closes libssh2#1400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant