Skip to content

Debug Crystal tests failing in GitHub Actions - #7

Merged
yb66 merged 3 commits into
masterfrom
claude/debug-crystal-tests-gh-actions-01X7i41vfL8ZyzNJWVGTpyqA
Nov 23, 2025
Merged

Debug Crystal tests failing in GitHub Actions#7
yb66 merged 3 commits into
masterfrom
claude/debug-crystal-tests-gh-actions-01X7i41vfL8ZyzNJWVGTpyqA

Conversation

@yb66

@yb66 yb66 commented Nov 23, 2025

Copy link
Copy Markdown
Owner

The shell_spec.sh test script was calling 'ruby exe/path_helper' on line 167, which prevented the Crystal implementation tests from working. The Crystal executable is a compiled binary and cannot be run with the Ruby interpreter.

Changed to use "$PWD/exe/path_helper" directly, which works for both:

  • Ruby implementation (via shebang #!/usr/bin/env ruby)
  • Crystal implementation (as a compiled binary)

This makes the test script language-agnostic and fixes Crystal test failures in GitHub Actions.

The shell_spec.sh test script was calling 'ruby exe/path_helper' on line 167,
which prevented the Crystal implementation tests from working. The Crystal
executable is a compiled binary and cannot be run with the Ruby interpreter.

Changed to use "$PWD/exe/path_helper" directly, which works for both:
- Ruby implementation (via shebang #!/usr/bin/env ruby)
- Crystal implementation (as a compiled binary)

This makes the test script language-agnostic and fixes Crystal test failures
in GitHub Actions.
The Crystal implementation was outputting one trailing newline after the
env var in debug mode, while the Ruby version outputs two newlines.

Changed from:
  print env_var
  puts "\n"

To:
  print env_var << "\n\n"

This matches the Ruby implementation (exe/path_helper:378) and fixes
the debug_path_spec and pkg_config_spec test failures in GH Actions.
Crystal doesn't support the << operator for string concatenation.
Changed from:
  print env_var << "\n\n"

To:
  print env_var + "\n\n"

This fixes the compilation error in GitHub Actions.
@yb66
yb66 merged commit e9ad1ca into master Nov 23, 2025
8 checks passed
@yb66
yb66 deleted the claude/debug-crystal-tests-gh-actions-01X7i41vfL8ZyzNJWVGTpyqA branch November 23, 2025 05:10
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