Skip to content

Rewrite dev_tools/test_libs.sh #710

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

Merged
merged 13 commits into from
Jun 10, 2025
Merged

Rewrite dev_tools/test_libs.sh #710

merged 13 commits into from
Jun 10, 2025

Conversation

mhucka
Copy link
Collaborator

@mhucka mhucka commented May 23, 2025

This addresses issue #705, and also improves in several ways:

  • Properly returns error codes if there are failures.
  • Automatically determines whether to exclude AVX and SSE cases from what it builds and tests. It queries the host computer about the features it supports in order to make this determination.
  • Doesn't uses a hardwired list of cases to build and test. Instead, it uses Bazel filters based on tags.
  • Provides a --help option.

This addresses issue #705, and also improves the script by making it
more efficient and adding a --help option.
@mhucka mhucka self-assigned this May 24, 2025
@mhucka mhucka marked this pull request as ready for review May 24, 2025 01:47
@mhucka mhucka requested review from dstrain115 and pavoljuhas May 24, 2025 01:47
@mhucka
Copy link
Collaborator Author

mhucka commented May 24, 2025

Resolves issue #705.

@mhucka mhucka added area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics area/health Involves general matters of project configuration, health, maintenance, and similar concerns area/tests Involves test cases, test frameworks, and similar labels May 24, 2025
@mhucka mhucka changed the title Rewrite build_tools/test_libs.sh Rewrite dev_tools/test_libs.sh May 26, 2025
mhucka added 2 commits May 26, 2025 11:48
An empty value for $filter_avx ends up leaving a quoted empty string in
the list of args, and bazel doesn't like that.
This option is not available with the old version of Bash on MacOS that
the GitHub runners still use.
@mhucka mhucka marked this pull request as draft May 27, 2025 00:25
mhucka added 2 commits May 30, 2025 02:03
This rewritten version improves upon the previous one in the following
ways:

- Automatically determines whether to exclude AVX and SSE cases from
  what it builds and tests. It queries the host computer about the
  features it supports in order to make this determination.
- Doesn't uses a hardwired list of cases to build and test. Instead,
  it uses Bazel filters based on tags.
- Adds a `--help` option.
@mhucka mhucka marked this pull request as ready for review May 30, 2025 03:26
Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Please see inline comments, otherwise LGTM.

As a side note, the editorconfig specifies an indent of 2 for shell scripts, but the file is indented at 4. Please reformat or update the editorconfig value.

@mhucka mhucka requested a review from pavoljuhas June 10, 2025 14:15
I have no idea what happened with the merge on GitHub, but it ended up
with some missing code from Pavol's revisions. Add them back.
@mhucka mhucka merged commit b69aa08 into master Jun 10, 2025
14 of 23 checks passed
@mhucka mhucka deleted the mh-update-test-script branch June 10, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics area/health Involves general matters of project configuration, health, maintenance, and similar concerns area/tests Involves test cases, test frameworks, and similar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants