mirror of
https://github.com/Z3Prover/z3
synced 2026-05-04 01:15:15 +00:00
Schedule code-conventions-analyzer to run every 3 hours (#8340)
* Initial plan * Update code-conventions-analyzer to run every 3 hours Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
6edf2f1057
commit
ee14a9dbd7
3 changed files with 21 additions and 36 deletions
4
.github/workflows/agentics-maintenance.yml
vendored
4
.github/workflows/agentics-maintenance.yml
vendored
|
|
@ -13,7 +13,7 @@
|
||||||
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
||||||
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
||||||
#
|
#
|
||||||
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.37.19). DO NOT EDIT.
|
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.37.22). DO NOT EDIT.
|
||||||
#
|
#
|
||||||
# To regenerate this workflow, run:
|
# To regenerate this workflow, run:
|
||||||
# gh aw compile
|
# gh aw compile
|
||||||
|
|
@ -46,7 +46,7 @@ jobs:
|
||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
|
|
||||||
|
|
|
||||||
50
.github/workflows/code-conventions-analyzer.lock.yml
generated
vendored
50
.github/workflows/code-conventions-analyzer.lock.yml
generated
vendored
|
|
@ -13,7 +13,7 @@
|
||||||
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
||||||
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
||||||
#
|
#
|
||||||
# This file was automatically generated by gh-aw (v0.37.19). DO NOT EDIT.
|
# This file was automatically generated by gh-aw (v0.37.22). DO NOT EDIT.
|
||||||
#
|
#
|
||||||
# To update this file, edit the corresponding .md file and run:
|
# To update this file, edit the corresponding .md file and run:
|
||||||
# gh aw compile
|
# gh aw compile
|
||||||
|
|
@ -24,8 +24,7 @@
|
||||||
name: "Code Conventions Analyzer"
|
name: "Code Conventions Analyzer"
|
||||||
"on":
|
"on":
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "4 0 * * *"
|
- cron: "0 */3 * * *"
|
||||||
# Friendly format: daily (scattered)
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
@ -45,7 +44,7 @@ jobs:
|
||||||
comment_repo: ""
|
comment_repo: ""
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Check workflow file timestamps
|
- name: Check workflow file timestamps
|
||||||
|
|
@ -82,7 +81,7 @@ jobs:
|
||||||
secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }}
|
secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -132,7 +131,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
||||||
- name: Install GitHub Copilot CLI
|
- name: Install GitHub Copilot CLI
|
||||||
run: /opt/gh-aw/actions/install_copilot_cli.sh 0.0.389
|
run: /opt/gh-aw/actions/install_copilot_cli.sh 0.0.394
|
||||||
- name: Install awf binary
|
- name: Install awf binary
|
||||||
run: bash /opt/gh-aw/actions/install_awf_binary.sh v0.10.0
|
run: bash /opt/gh-aw/actions/install_awf_binary.sh v0.10.0
|
||||||
- name: Determine automatic lockdown mode for GitHub MCP server
|
- name: Determine automatic lockdown mode for GitHub MCP server
|
||||||
|
|
@ -492,8 +491,8 @@ jobs:
|
||||||
engine_name: "GitHub Copilot CLI",
|
engine_name: "GitHub Copilot CLI",
|
||||||
model: process.env.GH_AW_MODEL_AGENT_COPILOT || "",
|
model: process.env.GH_AW_MODEL_AGENT_COPILOT || "",
|
||||||
version: "",
|
version: "",
|
||||||
agent_version: "0.0.389",
|
agent_version: "0.0.394",
|
||||||
cli_version: "v0.37.19",
|
cli_version: "v0.37.22",
|
||||||
workflow_name: "Code Conventions Analyzer",
|
workflow_name: "Code Conventions Analyzer",
|
||||||
experimental: false,
|
experimental: false,
|
||||||
supports_tools_allowlist: true,
|
supports_tools_allowlist: true,
|
||||||
|
|
@ -550,27 +549,8 @@ jobs:
|
||||||
PROMPT_EOF
|
PROMPT_EOF
|
||||||
cat "/opt/gh-aw/prompts/temp_folder_prompt.md" >> "$GH_AW_PROMPT"
|
cat "/opt/gh-aw/prompts/temp_folder_prompt.md" >> "$GH_AW_PROMPT"
|
||||||
cat "/opt/gh-aw/prompts/markdown.md" >> "$GH_AW_PROMPT"
|
cat "/opt/gh-aw/prompts/markdown.md" >> "$GH_AW_PROMPT"
|
||||||
|
cat "/opt/gh-aw/prompts/cache_memory_prompt.md" >> "$GH_AW_PROMPT"
|
||||||
cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT"
|
cat << 'PROMPT_EOF' >> "$GH_AW_PROMPT"
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Cache Folder Available
|
|
||||||
|
|
||||||
You have access to a persistent cache folder at `/tmp/gh-aw/cache-memory/` where you can read and write files to create memories and store information.
|
|
||||||
|
|
||||||
- **Read/Write Access**: You can freely read from and write to any files in this folder
|
|
||||||
- **Persistence**: Files in this folder persist across workflow runs via GitHub Actions cache
|
|
||||||
- **Last Write Wins**: If multiple processes write to the same file, the last write will be preserved
|
|
||||||
- **File Share**: Use this as a simple file share - organize files as you see fit
|
|
||||||
|
|
||||||
Examples of what you can store:
|
|
||||||
- `/tmp/gh-aw/cache-memory/notes.txt` - general notes and observations
|
|
||||||
- `/tmp/gh-aw/cache-memory/preferences.json` - user preferences and settings
|
|
||||||
- `/tmp/gh-aw/cache-memory/history.log` - activity history and logs
|
|
||||||
- `/tmp/gh-aw/cache-memory/state/` - organized state files in subdirectories
|
|
||||||
|
|
||||||
Feel free to create, read, update, and organize files in this folder as needed for your tasks.
|
|
||||||
|
|
||||||
<safe-outputs>
|
<safe-outputs>
|
||||||
<description>GitHub API Access Instructions</description>
|
<description>GitHub API Access Instructions</description>
|
||||||
<important>
|
<important>
|
||||||
|
|
@ -1942,6 +1922,8 @@ jobs:
|
||||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||||
env:
|
env:
|
||||||
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
||||||
|
GH_AW_CACHE_DESCRIPTION: ${{ '' }}
|
||||||
|
GH_AW_CACHE_DIR: ${{ '/tmp/gh-aw/cache-memory/' }}
|
||||||
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
||||||
GH_AW_GITHUB_EVENT_COMMENT_ID: ${{ github.event.comment.id }}
|
GH_AW_GITHUB_EVENT_COMMENT_ID: ${{ github.event.comment.id }}
|
||||||
GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER: ${{ github.event.discussion.number }}
|
GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER: ${{ github.event.discussion.number }}
|
||||||
|
|
@ -1958,6 +1940,8 @@ jobs:
|
||||||
return await substitutePlaceholders({
|
return await substitutePlaceholders({
|
||||||
file: process.env.GH_AW_PROMPT,
|
file: process.env.GH_AW_PROMPT,
|
||||||
substitutions: {
|
substitutions: {
|
||||||
|
GH_AW_CACHE_DESCRIPTION: process.env.GH_AW_CACHE_DESCRIPTION,
|
||||||
|
GH_AW_CACHE_DIR: process.env.GH_AW_CACHE_DIR,
|
||||||
GH_AW_GITHUB_ACTOR: process.env.GH_AW_GITHUB_ACTOR,
|
GH_AW_GITHUB_ACTOR: process.env.GH_AW_GITHUB_ACTOR,
|
||||||
GH_AW_GITHUB_EVENT_COMMENT_ID: process.env.GH_AW_GITHUB_EVENT_COMMENT_ID,
|
GH_AW_GITHUB_EVENT_COMMENT_ID: process.env.GH_AW_GITHUB_EVENT_COMMENT_ID,
|
||||||
GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER: process.env.GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER,
|
GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER: process.env.GH_AW_GITHUB_EVENT_DISCUSSION_NUMBER,
|
||||||
|
|
@ -2173,7 +2157,7 @@ jobs:
|
||||||
total_count: ${{ steps.missing_tool.outputs.total_count }}
|
total_count: ${{ steps.missing_tool.outputs.total_count }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Debug job inputs
|
- name: Debug job inputs
|
||||||
|
|
@ -2274,7 +2258,7 @@ jobs:
|
||||||
success: ${{ steps.parse_results.outputs.success }}
|
success: ${{ steps.parse_results.outputs.success }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Download agent artifacts
|
- name: Download agent artifacts
|
||||||
|
|
@ -2358,7 +2342,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
||||||
- name: Install GitHub Copilot CLI
|
- name: Install GitHub Copilot CLI
|
||||||
run: /opt/gh-aw/actions/install_copilot_cli.sh 0.0.389
|
run: /opt/gh-aw/actions/install_copilot_cli.sh 0.0.394
|
||||||
- name: Execute GitHub Copilot CLI
|
- name: Execute GitHub Copilot CLI
|
||||||
id: agentic_execution
|
id: agentic_execution
|
||||||
# Copilot CLI tool arguments (sorted):
|
# Copilot CLI tool arguments (sorted):
|
||||||
|
|
@ -2425,7 +2409,7 @@ jobs:
|
||||||
process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}
|
process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Download agent output artifact
|
- name: Download agent output artifact
|
||||||
|
|
@ -2462,7 +2446,7 @@ jobs:
|
||||||
permissions: {}
|
permissions: {}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Scripts
|
- name: Setup Scripts
|
||||||
uses: githubnext/gh-aw/actions/setup@v0.37.19
|
uses: githubnext/gh-aw/actions/setup@v0.37.22
|
||||||
with:
|
with:
|
||||||
destination: /opt/gh-aw/actions
|
destination: /opt/gh-aw/actions
|
||||||
- name: Download cache-memory artifact (default)
|
- name: Download cache-memory artifact (default)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
---
|
---
|
||||||
description: Analyzes Z3 codebase for consistent coding conventions and opportunities to use modern C++ features
|
description: Analyzes Z3 codebase for consistent coding conventions and opportunities to use modern C++ features
|
||||||
on:
|
on:
|
||||||
schedule: daily
|
schedule:
|
||||||
|
- cron: "0 */3 * * *" # Every 3 hours
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
permissions: read-all
|
permissions: read-all
|
||||||
tools:
|
tools:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue