diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index aa0f206be32..51c231f665b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -274,6 +274,30 @@ jobs: - name: run proposals tests run: yarn test working-directory: a3p-integration + - name: collect all core eval scripts + # Core eval scripts will be copied under /tmp/core_eval_scripts directory + # colons in the parent directory name will be replaced with dashes + run: | + find . -type d -path "./a3p-integration/proposals/*/submission" | while read -r dir; do + # Get the parent directory name + parent_dir=$(basename "$(dirname "$dir")") + # Replace colons with dashes in the parent directory name + sanitized_parent_dir=${parent_dir//:/-} + # Create the destination directory under /tmp/core_eval_scripts if it doesn't exist + destination_dir="/tmp/core_eval_scripts/$sanitized_parent_dir" + mkdir -p "$destination_dir" + # Copy everything from the $dir to the destination directory + cp -r "$dir"/* "$destination_dir/" + echo "Copied contents of $dir to $destination_dir" + done + - name: archive core eval scripts + # The core eval scripts can be found at the bottom of `Summary` page of + # `Integration tests` workflow once the workflow is completed. + # Ref: https://github.com/actions/upload-artifact?tab=readme-ov-file#where-does-the-upload-go + uses: actions/upload-artifact@v4 + with: + name: core-eval-scripts + path: /tmp/core_eval_scripts - name: notify on failure if: failure() && github.event_name != 'pull_request' uses: ./.github/actions/notify-status