Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
"version": "v7.0.1",
"sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
},
"astral-sh/setup-uv@v8.2.0": {
"repo": "astral-sh/setup-uv",
"version": "v8.2.0",
"sha": "fac544c07dec837d0ccb6301d7b5580bf5edae39"
},
"docker/build-push-action@v7.2.0": {
"repo": "docker/build-push-action",
"version": "v7.2.0",
Expand All @@ -75,16 +80,31 @@
"version": "v4.1.0",
"sha": "d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5"
},
"github/gh-aw-actions/setup@v0.78.3": {
"github/gh-aw-actions/setup-cli@v0.79.2": {
"repo": "github/gh-aw-actions/setup-cli",
"version": "v0.79.2",
"sha": "9b1d730701c16b15673633e5696d01677fad9844"
},
"github/gh-aw-actions/setup@v0.79.2": {
"repo": "github/gh-aw-actions/setup",
"version": "v0.78.3",
"sha": "8cfea5ae9bee18df8e50a96affdb6d666cd7b9a3"
"version": "v0.79.2",
"sha": "9b1d730701c16b15673633e5696d01677fad9844"
},
"github/gh-aw/actions/setup-cli@v0.78.3": {
"repo": "github/gh-aw/actions/setup-cli",
"version": "v0.78.3",
"sha": "544dd7355d846f9a7a1a5817a18148442e9ffe35"
},
"github/gh-aw/actions/setup-cli@v0.79.1": {
"repo": "github/gh-aw/actions/setup-cli",
"version": "v0.79.1",
"sha": "a478150b234d71d663eda1d687f1075fd9818cde"
},
"github/gh-aw/actions/setup-cli@v0.79.2": {
"repo": "github/gh-aw/actions/setup-cli",
"version": "v0.79.2",
"sha": "05fab00ffacfaf079f6007d4309d7e37e56b3fd8"
},
"github/gh-aw/actions/setup@v0.78.3": {
"repo": "github/gh-aw/actions/setup",
"version": "v0.78.3",
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ updates:
patterns:
- "*"
ignore:
- dependency-name: "github/gh-aw-actions/**" # Managed by gh aw compile. Version-locked to the gh-aw compiler; do not bump.
- dependency-name: "github/gh-aw-actions/**"
- dependency-name: "github/gh-aw-actions" # Managed by gh aw compile. Version-locked to the gh-aw compiler; do not bump.
open-pull-requests-limit: 1
package-ecosystem: github-actions
schedule:
Expand Down
84 changes: 46 additions & 38 deletions .github/workflows/agentics-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
#
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.77.5). DO NOT EDIT.
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.79.2). DO NOT EDIT.
#
# To regenerate this workflow, run:
# gh aw compile
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
actions: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -155,12 +155,12 @@ jobs:
operation: ${{ steps.record.outputs.operation }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -175,9 +175,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.77.5
uses: github/gh-aw-actions/setup-cli@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
version: v0.77.5
version: v0.79.2

- name: Run operation
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -244,14 +244,14 @@ jobs:
run_url: ${{ steps.record.outputs.run_url }}
steps:
- name: Checkout actions folder
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
sparse-checkout: |
actions
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -290,12 +290,12 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -310,9 +310,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.77.5
uses: github/gh-aw-actions/setup-cli@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
version: v0.77.5
version: v0.79.2

- name: Create missing labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand All @@ -336,12 +336,12 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -356,9 +356,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.77.5
uses: github/gh-aw-actions/setup-cli@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
version: v0.77.5
version: v0.79.2

- name: Restore activity report logs cache
id: activity_report_logs_cache
Expand Down Expand Up @@ -441,12 +441,12 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -461,40 +461,37 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.77.5
uses: github/gh-aw-actions/setup-cli@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
version: v0.77.5
version: v0.79.2

- name: Restore forecast report logs cache
id: forecast_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .github/aw/logs
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-forecast-report-logs-${{ github.repository }}-
${{ runner.os }}-forecast-report-logs-

- name: Generate forecast report
id: generate_forecast_report
timeout-minutes: 30
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: "*"
GH_AW_CMD_PREFIX: gh aw
run: |
mkdir -p ./.cache/gh-aw/forecast
${GH_AW_CMD_PREFIX} logs --repo "${{ github.repository }}" --start-date -30d --count 1500 > /dev/null
if ! compgen -G ".github/aw/logs/run-*/run_summary.json" > /dev/null; then
echo "::error::Missing run summary cache in .github/aw/logs after gh aw logs warm-up; cannot run forecast."
exit 1
fi
set +e
${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 10 --json 2> >(grep -Fv "forecast is an experimental command and may change without notice" >&2) > ./.cache/gh-aw/forecast/report.json
${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --timeout 30 --verbose --json > ./.cache/gh-aw/forecast/report.json
forecast_exit_code=$?
set -e
if [ "${forecast_exit_code}" -eq 124 ]; then
echo '{"outcome":"timeout","message":"Forecast computation timed out after 10 minutes."}' > ./.cache/gh-aw/forecast/error.json
echo "::error::Forecast computation timed out after 10 minutes."
echo '{"outcome":"timeout","message":"Forecast computation timed out after 30 minutes."}' > ./.cache/gh-aw/forecast/error.json
echo "::error::Forecast computation timed out after 30 minutes."
exit 1
fi
if [ "${forecast_exit_code}" -ne 0 ]; then
Expand All @@ -503,12 +500,23 @@ jobs:
exit 1
fi

- name: Debug forecast logs folder
if: ${{ always() }}
shell: bash
run: |
if [ ! -d ./.github/aw/logs ]; then
echo "Logs directory not found: ./.github/aw/logs"
exit 0
fi
echo "Files under ./.github/aw/logs:"
find ./.github/aw/logs -type f | sort

- name: Save forecast report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .github/aw/logs
key: ${{ steps.forecast_report_logs_cache.outputs.cache-primary-key }}
path: ./.github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}

- name: Generate forecast issue
if: ${{ always() }}
Expand All @@ -530,7 +538,7 @@ jobs:
issues: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -562,12 +570,12 @@ jobs:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@3ea13c02d765410340d533515cb31a7eef2baaf0 # v0.77.5
uses: github/gh-aw-actions/setup@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -582,9 +590,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@v0.77.5
uses: github/gh-aw-actions/setup-cli@9b1d730701c16b15673633e5696d01677fad9844 # v0.79.2
with:
version: v0.77.5
version: v0.79.2

- name: Validate workflows and file issue on findings
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down
Loading
Loading