Skip to content

Testing - Adding ASCII code validation#593

Merged
dpasukhi merged 3 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:ascii_code_check
Jul 6, 2025
Merged

Testing - Adding ASCII code validation#593
dpasukhi merged 3 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:ascii_code_check

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

@dpasukhi dpasukhi commented Jul 6, 2025

Fixed issue with retest artifacts.
Added ne job to check ASCII symbols

Fixed issue with retest artifacts.
Added ne job to check ASCII symbols
@dpasukhi dpasukhi requested a review from Copilot July 6, 2025 16:43
@dpasukhi dpasukhi added 2. Enhancement New feature or request 1. Testing Updating of the DRAW/GTests or GH tests labels Jul 6, 2025
Copy link
Copy Markdown

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.

Pull Request Overview

This PR introduces a new CI job to enforce ASCII-only characters in source files and refines the artifact upload logic for regression test retests.

  • Split the existing regression test artifact upload into separate Windows and macOS/Linux steps with platform-specific paths.
  • Added ascii-check job in the build-and-test workflow to detect non-ASCII characters in changed files.
  • Introduced a new composite action (.github/actions/ascii-check) to scan diffs and report any non-ASCII content.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/build-and-test-multiplatform.yml Added ascii-check job to check for non-ASCII characters
.github/actions/retest-failures/action.yml Refactored artifact upload into Windows and macOS/Linux steps
.github/actions/ascii-check/action.yml New composite action to scan changed files for non-ASCII
Comments suppressed due to low confidence (3)

.github/actions/ascii-check/action.yml:11

  • [nitpick] The default file-pattern only covers C++ files in src/. Consider broadening or documenting this regex to include other relevant file types (e.g., scripts, configs, docs) or make it clearer that it targets only C++ sources.
    default: '^(src)/.*\.(cpp|hxx|cxx|lxx|h|pxx|hpp)$'

.github/actions/retest-failures/action.yml:214

  • [nitpick] The two platform-specific upload steps are nearly identical. You could simplify maintenance by using a matrix strategy or a single uses step with a conditional path expression instead of duplicating the block.
    - name: Upload regression test results (Windows)

.github/workflows/build-and-test-multiplatform.yml:38

  • The ascii-check job lacks an explicit needs or if condition to restrict it to pull requests. If it's only intended for PR validation, consider adding if: github.event_name == 'pull_request' or wiring it behind needs: [other-job] to avoid unexpected runs.
  ascii-check:

@dpasukhi dpasukhi added this to the Release 7.9.2 milestone Jul 6, 2025
@dpasukhi dpasukhi merged commit d968474 into Open-Cascade-SAS:IR Jul 6, 2025
35 checks passed
@dpasukhi dpasukhi deleted the ascii_code_check branch July 6, 2025 20:00
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Testing Updating of the DRAW/GTests or GH tests 2. Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants