Skip to content

Fix CompactionTest timeout caused by prompt mismatch with snapshot#160

Merged
brunoborges merged 3 commits intocopilot/sync-upstream-28-commitsfrom
copilot/fix-github-actions-workflow
Mar 3, 2026
Merged

Fix CompactionTest timeout caused by prompt mismatch with snapshot#160
brunoborges merged 3 commits intocopilot/sync-upstream-28-commitsfrom
copilot/fix-github-actions-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

CompactionTest.testShouldTriggerCompactionWithLowThresholdAndEmitEvents was timing out after 60s because the prompt sent to CapiProxy didn't match the recorded snapshot, causing the proxy to return "No cached response found" — leaving sendAndWait waiting for a SessionIdleEvent that never arrived.

Change

  • CompactionTest.java: Corrected the first prompt to match the snapshot exactly:
    // Before (no cached response → timeout)
    "Tell me a long story about a dragon. Be very detailed."
    
    // After (matches snapshot)
    "Tell me a story about a dragon. Be detailed."
    

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkstyle.org
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/xml/tools/xml-extractor.jar --fileList=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/working/files-to-index2299212444779792152.list --sourceArchiveDir=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/src --outputDir=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/trap/java (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Fix the failing GitHub Actions workflow Java SDK Tests
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 65480806733
Job URL: https://github.com/copilot-community-sdk/copilot-sdk-java/actions/runs/22599768584/job/65480806733


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for Java SDK tests Fix CompactionTest timeout caused by prompt mismatch with snapshot Mar 3, 2026
@brunoborges brunoborges marked this pull request as ready for review March 3, 2026 15:26
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@brunoborges brunoborges merged commit e2234d0 into copilot/sync-upstream-28-commits Mar 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants