-
Notifications
You must be signed in to change notification settings - Fork 0
feat: redesign test selection cards with expand/collapse and badges #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b9be0a0
feat: redesign test selection cards with expand/collapse and badges
wgutmann dce32dd
feat: add Claude GitHub Actions and consolidate secret scanning
wgutmann f793f1f
merge: resolve conflict in claude.yml, keep main's OAuth config
wgutmann d5ae643
feat: retire Alloy, reconcile hook files, add LokiPushClient
wgutmann 34cf1ef
feat: per-turn token logging at every stop hook
wgutmann 986f732
feat: effort levels low/med/high/max, thinking as separate field
wgutmann f253ea6
Add session_id dropdown to Claude token usage dashboard
wgutmann 8a62599
feat: redesign claude-code-overview dashboard for short time ranges
wgutmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Claude Fix Failed Tests | ||
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: ["Tests"] | ||
| types: [completed] | ||
|
|
||
| jobs: | ||
| fix-tests: | ||
| if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.head_branch != 'main' }} | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.workflow_run.head_branch }} | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Download test results | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: test-results | ||
| path: TestResults/ | ||
| run-id: ${{ github.event.workflow_run.id }} | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| continue-on-error: true | ||
|
|
||
| - uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| prompt: | | ||
| The CI tests failed on branch ${{ github.event.workflow_run.head_branch }}. | ||
|
|
||
| 1. Check TestResults/ for .trx files with failure details | ||
| 2. If no artifacts, run: dotnet test src/SimSteward.Plugin.Tests/SimSteward.Plugin.Tests.csproj -c Release -v normal | ||
| 3. Analyze the root cause of each failure | ||
| 4. Fix the failing tests or the code they test | ||
| 5. Verify fixes by running the tests again | ||
|
|
||
| Do NOT modify tests just to make them pass — fix the underlying code unless the test itself is wrong. | ||
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,9 @@ | ||
| // Grafana Alloy — tail plugin-structured.jsonl → Loki | ||
| // Docs: https://grafana.com/docs/alloy/latest/ | ||
|
|
||
| local.file_match "simsteward_structured" { | ||
| path_targets = [{"__path__" = "/var/log/simsteward/plugin-structured.jsonl"}] | ||
| sync_period = "5s" | ||
| } | ||
|
|
||
| loki.source.file "simsteward_structured" { | ||
| targets = local.file_match.simsteward_structured.targets | ||
| forward_to = [loki.process.simsteward.receiver] | ||
|
|
||
| tail_from_end = true | ||
| } | ||
|
|
||
| loki.process "simsteward" { | ||
| forward_to = [loki.write.local.receiver] | ||
|
|
||
| // Extract low-cardinality labels from JSON; everything else stays in the log line. | ||
| stage.json { | ||
| expressions = { | ||
| level = "level", | ||
| component = "component", | ||
| event = "event", | ||
| domain = "domain", | ||
| } | ||
| } | ||
|
|
||
| stage.labels { | ||
| values = { | ||
| level = "", | ||
| component = "", | ||
| event = "", | ||
| domain = "", | ||
| } | ||
| } | ||
| } | ||
|
|
||
| loki.write "local" { | ||
| endpoint { | ||
| url = "http://loki:3100/loki/api/v1/push" | ||
| } | ||
| } | ||
| // RETIRED — Alloy is no longer part of the observability stack. | ||
| // | ||
| // The SimHub plugin (PluginLogger.cs) now pushes plugin-structured.jsonl entries directly | ||
| // to Loki via LokiPushClient at flush time (~500ms batches), replacing this file-tail pipeline. | ||
| // | ||
| // Claude Code token metrics are pushed directly from ~/.claude/hooks/loki-log.js at session-end. | ||
| // | ||
| // This file is kept for reference only. Remove the alloy service from docker-compose.yml | ||
| // before starting the stack. |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout Warning