Skip to content

ci/appveyor: try running tests - #1856

Closed
vszakats wants to merge 12 commits into
libssh2:masterfrom
vszakats:wtest
Closed

vszakats wants to merge 12 commits into
libssh2:masterfrom
vszakats:wtest

Conversation

@vszakats

Copy link
Copy Markdown
Member

No description provided.

@vszakats
vszakats marked this pull request as draft April 11, 2026 02:47
@vszakats
vszakats requested a review from Copilot April 11, 2026 02:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AppVeyor CI configuration to start running the CTest suite again (previously disabled via SKIP_CTEST), so Windows CI jobs exercise runtime tests rather than only building.

Changes:

  • Removed the global SKIP_CTEST: 'yes' environment variable so test_script can execute ctest for eligible jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread appveyor.yml
Comment on lines 32 to 37
environment:
CMAKE_CONFIGURATION: 'Release'
CMAKE_VERSION: 3.18.4
CMAKE_SHA256: a932bc0c8ee79f1003204466c525b38a840424d4ae29f9e5fb88959116f2407d
FIXTURE_XFER_COUNT: 35020
SKIP_CTEST: 'yes' # Connection to test server has been failing consistently since 2024-08-29

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the global SKIP_CTEST default enables ctest for all non-ARM64 matrix jobs, including ones explicitly labeled "Build-only" in job_name (e.g., VS2013 static-only / VS2010 non-unity). That makes the job name misleading and may unintentionally expand CI scope. Consider setting SKIP_CTEST: 'yes' only for the build-only matrix entries (or updating the test_script guard to skip when job_name contains "Build-only").

Copilot uses AI. Check for mistakes.
Comment thread appveyor.yml
CMAKE_CONFIGURATION: 'Release'
CMAKE_VERSION: 3.18.4
CMAKE_SHA256: a932bc0c8ee79f1003204466c525b38a840424d4ae29f9e5fb88959116f2407d
FIXTURE_XFER_COUNT: 35020

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With SKIP_CTEST no longer defaulting to yes, the test_script will run and attempt Docker-based OpenSSH fixture setup. Currently, if the SSH tunnel/sshd handshake never becomes ready, the script logs "... failed." but still proceeds to run ctest without configuring DOCKER_HOST, which will make docker-dependent tests fail in a hard-to-diagnose way. Consider failing the job immediately when the tunnel isn't established, or explicitly disabling docker-dependent fixtures in that case (e.g., by setting OPENSSH_NO_DOCKER=1 / reintroducing SKIP_CTEST for that job).

Suggested change
FIXTURE_XFER_COUNT: 35020
FIXTURE_XFER_COUNT: 35020
OPENSSH_NO_DOCKER: 1

Copilot uses AI. Check for mistakes.
- openssh_fixture: fix overly long retry delay on non-Windows, when
  acquiring docker machine IP.

- test_ssh2: fix overly short retry delay on Windows, on connect.

Follow-up to a459a25 libssh2#996
Follow-up to a88a727
Follow-up to 984d008 libssh2#490
Follow-up to cf80f2f

Closes libssh2#1853
@vszakats

vszakats commented Apr 12, 2026 •

Copy link
Copy Markdown
Member Author

Tried switching back to RSA 2048, switching back to MS-DOS batch,
it worked in one run, keeps failing in other runs.

@vszakats

Copy link
Copy Markdown
Member Author

Continued in #1857

@vszakats vszakats closed this Apr 14, 2026
@vszakats
vszakats deleted the wtest branch April 14, 2026 21:48
vszakats added a commit that referenced this pull request Apr 26, 2026
- wait for sshd before the build, to ease testing.
- restore the RSA 2048 hostkey generator line, commented, to ease tests.
- keep per-job `SKIP_CTEST` settings, commented, to ease tests.
- drop automatism to disable tests for ARM64, for simplicity.

Note: This has been tested with tests enabled, but they remain
a hit-or-miss (mostly a miss) due to failed sshd connection, and this
patch does not re-enable them.

FTR:
- a CI run when tests worked without issues (2023-12-04):
  https://ci.appveyor.com/project/libssh2org/libssh2/builds/48673013/job/79lywpm3pfvq7hn5
- a fresh CI run when the first job successfully waited for sshd:
  https://ci.appveyor.com/project/libssh2org/libssh2/builds/53941135/job/yu9jf5hvp3grse0g

Ref: #1856 #1857
Follow-up to c71ff14 #1894
Follow-up to c321b32 #1768
Follow-up to b5e68bd #1461
Follow-up to f36edf9 #997

Closes #1892
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.

2 participants