Skip to content

Configure TLS resources for bind canonical tests#3210

Merged
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:fix-artery-bind-canonical-tls-config
Jun 27, 2026
Merged

Configure TLS resources for bind canonical tests#3210
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:fix-artery-bind-canonical-tls-config

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 27, 2026

Copy link
Copy Markdown
Member

Motivation

PR validation for #3205 exposed that BindCanonicalAddressSpec fails the tls-tcp bind canonical address cases because the spec falls back to the reference.conf default keystore and truststore relative paths.

Modification

Reuse the existing ArterySpecSupport.tlsConfig in BindCanonicalAddressSpec.commonConfig so TLS transport cases resolve the test keystore and truststore resources.

Result

The TLS bind canonical address cases no longer fail with NoSuchFileException: keystore.

Tests

  • JDK 17: rtk bash -lc "export JAVA_HOME=$(/usr/libexec/java_home -v 17); export PATH=\"$JAVA_HOME/bin:$PATH\"; java -version; sbt \"remote / Test / testOnly org.apache.pekko.remote.artery.BindCanonicalAddressSpec\"" / passed (15 tests)
  • rtk scalafmt --mode diff-ref=origin/main --non-interactive / passed
  • rtk scalafmt --list --mode diff-ref=origin/main --non-interactive / passed
  • rtk bash -lc "git diff --check" / passed

References

Refs #3205

Motivation:
PR validation failed in BindCanonicalAddressSpec when tls-tcp used the reference.conf default keystore path.

Modification:
Reuse the existing ArterySpecSupport TLS test configuration for the bind canonical address spec so tls-tcp tests resolve the test keystore and truststore resources.

Result:
The TLS bind canonical address cases no longer fail with NoSuchFileException: keystore.

Tests:
- rtk bash -lc 'export JAVA_HOME=/Users/hepin/Library/Java/JavaVirtualMachines/azul-17.0.17/Contents/Home; export PATH="/Users/hepin/.sdkman/candidates/java/current/bin:/Users/hepin/.nvm/versions/node/v22.23.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path:/Users/hepin/.nvm/versions/node/v22.23.0/lib/node_modules/@openai/codex/node_modules/@openai/codex-darwin-arm64/vendor/aarch64-apple-darwin/codex-path:/Users/hepin/.codex/tmp/arg0/codex-arg02IyHp2:/Applications/Wukong.app/Contents/Resources/resources/dingsync/realdoc.app/Contents/MacOS:/Users/hepin/.local/bin:/Users/hepin/.nvm/versions/node/v22.23.0/bin:/Users/hepin/.mimocode/bin:/Users/hepin/Library/Python/3.10/bin:/Users/hepin/.qoderwork/bin:/Users/hepin/.opencode/bin:/Users/hepin/.antigravity/antigravity/bin:/Users/hepin/bin:/Users/hepin/.sdkman/candidates/java/current/bin:/Users/hepin/Library/Java/JavaVirtualMachines/openjdk-25.0.2/Contents/Home/bin:/Applications/Wukong.app/Contents/Resources/resources/dingsync/realdoc.app/Contents/MacOS:/Users/hepin/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/hepin/.tmo/bin:/Users/hepin/.local/bin:/Users/hepin/.cargo/bin:/Users/hepin/Library/Application Support/JetBrains/Toolbox/scripts:/Users/hepin/Library/Application Support/Coursier/bin:/Users/hepin/.local/bin"; java -version; sbt "remote / Test / testOnly org.apache.pekko.remote.artery.BindCanonicalAddressSpec"' / passed (15 tests)
- rtk scalafmt --mode diff-ref=origin/main --non-interactive / passed
- rtk scalafmt --list --mode diff-ref=origin/main --non-interactive / passed
- rtk bash -lc 'git diff --check' / passed

References:
Refs apache#3205

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

I saw this issue with the keystore not being found in a test run today - is this new or a longstanding intermittent issue?

@He-Pin He-Pin merged commit 99fe5f7 into apache:main Jun 27, 2026
9 checks passed
@He-Pin He-Pin deleted the fix-artery-bind-canonical-tls-config branch June 27, 2026 19:57
@He-Pin

He-Pin commented Jun 27, 2026

Copy link
Copy Markdown
Member Author

The last change is 10 years ago at this line

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