Skip to content

ci: add timeouts to ctest and GitHub CI jobs - #851

Closed
vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:appveyor-test-prep-delay
Closed

vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:appveyor-test-prep-delay

Conversation

@vszakats

@vszakats vszakats commented Mar 16, 2023 •

Copy link
Copy Markdown
Member
  • ctest shows a the default timeout '10000000', which may cause
    infinite waits e.g. in case the necessary server worker did not
    launch.

    CMake CI tests currently take approx:

    • GitHub / Linux : 125 seconds
    • AppVeyor / Windows: 300 seconds

    New defaults are: 450 and 900 seconds respectively.

  • set timeouts for style-check, fuzz, Linux and Windows GitHub CI
    jobs to avoid hanging forever.

Also:

  • move choco install to before_test to make builds start faster
    in appveyor.yml.

  • fix some yamllint ON/OFF-confusion issue by quoting these
    values in appveyor.yml.

  • fix indentation in appveyor.yml.

  • convert to GitHub workflows to LF line-ending.

Closes #851

@vszakats

Copy link
Copy Markdown
Member Author

This is probably wrong because GitHub CI tests appear to rely on the GitHub Action being launched by AppVeyor CI. So the earlier it's started, the better.

I'll convert this change to a comment stating the above. Perhaps also adding --timeout to ctest to override the default 10000000 (seconds? milliseconds?).

- `ctest` shows a the default timeout '10000000', which may cause
  infinite waits e.g. in case the necessary server worker did not
  launch.

  CMake CI tests currently take approx:
  GitHub   / Linux  : 125 seconds
  AppVeyor / Windows: 300 seconds

  New defaults are: 450 and 900 seconds respectively.

- set timeouts for style-check, fuzz, Linux and Windows GitHub CI
  jobs to avoid hanging forever.

Also:

- move 'choco install' to before_test to make builds start faster
  in `appveyor.yml`.

- fix some yamllint ON/OFF-confusion issue by quoting these values
  in `appveyor.yml`.

- fix indentation in `appveyor.yml`.

- convert to GitHub workflow files to LF line-ending.
@vszakats vszakats changed the title appveyor.yml: move docker/test preparation steps to before_test ci: add timeouts to ctest and GitHub CI jobs Mar 16, 2023
@vszakats
vszakats force-pushed the appveyor-test-prep-delay branch from 95fe1a2 to 6af0e80 Compare March 16, 2023 23:22
@vszakats vszakats closed this in c5f2efd Mar 17, 2023
@vszakats
vszakats deleted the appveyor-test-prep-delay branch March 17, 2023 09:44
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
- `ctest` shows a the default timeout '10000000' (turns out to be
  in seconds), cause infinite waits e.g. in case the necessary server
  worker is not available.

  CMake CI tests take approx:
  - GitHub   / Linux  : 125 seconds
  - AppVeyor / Windows: 300 seconds

  New timeouts are: 450 and 900 seconds respectively.

- set timeouts for style-check, fuzz, Linux and Windows GitHub CI
  jobs to avoid hanging forever.

Also:

- move `choco install` to before_test to make builds start faster
  in `appveyor.yml`.

- fix some yamllint `ON`/`OFF`-confusion issue by quoting these
  values in `appveyor.yml`.

- fix indentation in `appveyor.yml`.

- convert to GitHub workflows to LF line-ending.

Ref: libssh2#655 (comment)

Closes libssh2#851
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant