Skip to content

Conversation

@deslaughter
Copy link
Collaborator

This PR is ready to be merged.

Feature or improvement description

This PR fixes the issue with Python not being able to find the requirements.txt file in the regression test GitHub action. The issue was caused by not specifying or using the wrong variable for the working directory when running pip install -r requirements.txt. Different runners would interpret the working directory differently causing tests to sometimes pass and sometimes fail. This PR uses ${{github.workspace}} instead of ${{runner.workspace}} to specify the working directory.

In addition, the existing regression test GitHub action uses caches to transfer data and binaries between the jobs in a run. Based on https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/storing-and-sharing-data-from-a-workflow#comparing-artifacts-and-dependency-caching, artifacts should be used for sharing data within a run (across jobs) and caches should be used for sharing dependencies across workflow runs. This PR changes the action to use artifacts, which reduces storage size and makes it possible for the user to download the compilation output after the run, which may be useful.

Related issue, if one exists

Impacted areas of the software

automated-dev-tests.yml

@deslaughter deslaughter added this to the v4.2.0 milestone Jun 24, 2025
@deslaughter deslaughter self-assigned this Jun 24, 2025
@deslaughter deslaughter added Github Actions System: GH actions GitHub actions related workflows/scripting labels Jun 24, 2025
Copy link
Contributor

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 fixes the working directory issue in the Python regression test GitHub action by switching from runner.workspace to github.workspace, and updates caching to use artifacts instead of the actions/cache mechanism.

  • Updated working directory references throughout the workflow
  • Replaced caching with artifact upload/download to share build outputs between jobs

@andrew-platt andrew-platt modified the milestones: v4.2.0, v4.1.1 Jun 24, 2025
Add space for clarity

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andrew-platt andrew-platt merged commit 02e8447 into OpenFAST:dev Jun 24, 2025
12 checks passed
Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

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

Looks good and tests ok.

@andrew-platt andrew-platt mentioned this pull request Jul 8, 2025
37 tasks
@deslaughter deslaughter deleted the gh-actions-debug branch October 27, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Github Actions System: GH actions GitHub actions related workflows/scripting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants