Skip to content

Fix string comparison in HybridRAG test script #2004

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ashahba
Copy link
Collaborator

@ashahba ashahba commented May 27, 2025

Description

There are multiple string comparisons in HybridRAG/tests/test_compose_on_gaudi.sh that use -eq which is meant to be used for numerical comparisons.

Issues

N/A

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

N/A

Tests

The test script itself should remain working.

@Copilot Copilot AI review requested due to automatic review settings May 27, 2025 23:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • HybridRAG/tests/test_compose_on_gaudi.sh: Language not supported

Copy link

github-actions bot commented May 27, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

Approved, but this is Bash specific syntax. Shell string comparison operator is = in the POSIX standard (which is naturally accepted also by Bash): https://stackoverflow.com/questions/1089813/bash-dash-and-string-comparison

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.

3 participants