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

adds a test that illustrates #55 - env not getting set on remote execution with stream #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heckj
Copy link

@heckj heckj commented Jan 14, 2025

I ran across #55 and thought I'd try and verify it to start to debug it.

There's a lot in here that I'm not familiar with, but I thought first step would be to reproduce the issue in a test, so I tried to loosely replicate the issue in question interacting with the OpenSSH docker-service setup that's outlined in the CI with GH actions.

In addition to running the service locally using the command:

docker run -d -p 2222:2222 -e USER_NAME=citadel -e USER_PASSWORD=hunter2 -e PASSWORD_ACCESS=true lscr.io/linuxserver/openssh-server:latest

I invoked the tests with:

#!/usr/bin/env bash
set -eoux pipefail

export SWIFT_DETERMINISTIC_HASHING=1
export SSH_HOST=localhost
export SSH_PORT=2222
export SSH_USERNAME=citadel
export SSH_PASSWORD=hunter2

swift test

@Joannis Joannis self-requested a review January 20, 2025 10:24
@Joannis
Copy link
Member

Joannis commented Jan 20, 2025

Thanks for this PR!

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