Skip to content

Commit

Permalink
Debug pr
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Feb 11, 2025
1 parent c2f129a commit fc0830d
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ jobs:
- *tests_added_modified
- *pkg_tests_added_modified
- name: Shot github context
env:
CONTEXT: "${{ toJSON(github) }}"
run: echo $CONTEXT

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -205,6 +210,11 @@ jobs:
- name: Define workflow config
id: workflow-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}
FULL_TESTRUN_SLUGS: "${{ vars.FULL_TESTRUN_SLUGS }}"
PR_TESTRUN_SLUGS: "${{ vars.PR_TESTRUN_SLUGS }}"
run: |
tools ci workflow-config ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ jobs:
- *tests_added_modified
- *pkg_tests_added_modified
- name: Shot github context
env:
CONTEXT: "${{ toJSON(github) }}"
run: echo $CONTEXT

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -254,6 +259,11 @@ jobs:
- name: Define workflow config
id: workflow-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}
FULL_TESTRUN_SLUGS: "${{ vars.FULL_TESTRUN_SLUGS }}"
PR_TESTRUN_SLUGS: "${{ vars.PR_TESTRUN_SLUGS }}"
run: |
tools ci workflow-config${{ inputs.skip-salt-test-suite && ' --skip-tests' || '' }}${{ inputs.skip-salt-pkg-test-suite && ' --skip-pkg-tests' || '' }} ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ jobs:
- *tests_added_modified
- *pkg_tests_added_modified
- name: Shot github context
env:
CONTEXT: "${{ toJSON(github) }}"
run: echo $CONTEXT

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -244,6 +249,11 @@ jobs:
- name: Define workflow config
id: workflow-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}
FULL_TESTRUN_SLUGS: "${{ vars.FULL_TESTRUN_SLUGS }}"
PR_TESTRUN_SLUGS: "${{ vars.PR_TESTRUN_SLUGS }}"
run: |
tools ci workflow-config ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ jobs:
- *tests_added_modified
- *pkg_tests_added_modified
- name: Shot github context
env:
CONTEXT: "${{ toJSON(github) }}"
run: echo $CONTEXT

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -244,6 +249,11 @@ jobs:
- name: Define workflow config
id: workflow-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}
FULL_TESTRUN_SLUGS: "${{ vars.FULL_TESTRUN_SLUGS }}"
PR_TESTRUN_SLUGS: "${{ vars.PR_TESTRUN_SLUGS }}"
run: |
tools ci workflow-config${{ inputs.skip-salt-test-suite && ' --skip-tests' || '' }}${{ inputs.skip-salt-pkg-test-suite && ' --skip-pkg-tests' || '' }}${{ inputs.skip-salt-pkg-download-test-suite && ' --skip-pkg-download-tests' || '' }} ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/templates/layout.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ jobs:
- *tests_added_modified
- *pkg_tests_added_modified

- name: Shot github context
env:
CONTEXT: "${{ toJSON(github) }}"
run: echo $CONTEXT

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -267,6 +272,11 @@ jobs:

- name: Define workflow config
id: workflow-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}
FULL_TESTRUN_SLUGS: "${{ vars.FULL_TESTRUN_SLUGS }}"
PR_TESTRUN_SLUGS: "${{ vars.PR_TESTRUN_SLUGS }}"
run: |
tools ci workflow-config<{ prepare_workflow_skip_test_suite }><{
prepare_workflow_skip_pkg_test_suite }><{ prepare_workflow_skip_pkg_download_test_suite
Expand Down
3 changes: 3 additions & 0 deletions tools/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ def workflow_config(
os.environ.get("PR_TESTRUN_SLUGS", ""),
labels,
)
ctx.info(f"{'==== requested slugs ====':^80s}")
ctx.info(f"{pprint.pformat(requested_slugs)}")
ctx.info(f"{'==== end requested slugs ====':^80s}")

ctx.info(f"{'==== labels ====':^80s}")
ctx.info(f"{pprint.pformat(labels)}")
Expand Down

0 comments on commit fc0830d

Please sign in to comment.