Skip to content

Commit 30926ac

Browse files
committed
ci: use dump_packages.py callback to get packages used by role
This adds the dump_packages.py callback which will dump the arguments to the `package` module (except for `state: absent`) to the integration test run logs. The output looks like this: `lsrpackages: pkg-a pkg-b ...` We will have tooling which will scrape the logs to extract the packages used at runtime and testing for all of the supported combinations of distribution and version. This also ensures the weekly-ci PR git commit message conforms to commitlint. Signed-off-by: Rich Megginson <[email protected]>
1 parent ec52321 commit 30926ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/weekly_ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy
77
- cron: 0 21 * * 6
88
env:
99
BRANCH_NAME: weekly-ci
10-
COMMIT_MESSAGE: This PR is to trigger periodic CI testing
10+
COMMIT_MESSAGE: "ci: This PR is to trigger periodic CI testing"
1111
BODY_MESSAGE: >-
1212
This PR is for the purpose of triggering periodic CI testing.
1313
We don't currently have a way to trigger CI without a PR,
@@ -41,6 +41,11 @@ jobs:
4141
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
4242
git checkout ${{ env.BRANCH_NAME }} || git checkout -b ${{ env.BRANCH_NAME }}
4343
git rebase main
44+
if [ ! -d tests/callback_plugins ]; then
45+
mkdir -p tests/callback_plugins
46+
fi
47+
curl -L -s -o tests/callback_plugins/dump_packages.py https://raw.githubusercontent.com/linux-system-roles/auto-maintenance/main/callback_plugins/dump_packages.py
48+
git add tests/callback_plugins
4449
git commit --allow-empty -m "${{ env.COMMIT_MESSAGE }}"
4550
git push -f --set-upstream origin ${{ env.BRANCH_NAME }}
4651

0 commit comments

Comments
 (0)