Parse all disabled issues #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Parse all disabled issues" | |
on: | |
schedule: | |
- cron: '0 4 * * 0' # every Sunday, 4am UTC | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
parse_issues: | |
runs-on: ubuntu-latest | |
env: | |
AQA_ISSUE_TRACKER_GITHUB_USER: ${{ github.actor }} | |
AQA_ISSUE_TRACKER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: 3.8 | |
- name: checkout current repo | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: install reqs | |
run: | | |
pip install -r scripts/disabled_tests/requirements.txt | |
- name: discover disabled tests | |
run : | | |
echo "::group::openjdk exclude files" | |
ls -1dq openjdk/excludes/* | tee exclude_files.txt | |
echo "::endgroup::" | |
echo "::group::playlist files" | |
find . -name "playlist.xml" -not -path "scripts" | tee playlist_files.txt | |
echo "::endgroup::" | |
- name: run scripts | |
run: | | |
echo "::group::parsing" | |
cat exclude_files.txt | python scripts/disabled_tests/exclude_parser.py -v > exclude.json | |
cat playlist_files.txt | python scripts/disabled_tests/playlist_parser.py -v > playlist.json | |
echo "::endgroup::" | |
echo "::group::merging" | |
jq -s 'flatten(1)' exclude.json playlist.json > all.json | |
echo "::endgroup::" | |
echo "::group::status" | |
cat all.json | python scripts/disabled_tests/issue_status.py -v > output.json | |
echo "::endgroup::" | |
- name: store artifact | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: disabled_tests | |
path: output.json | |
retention-days: 90 |