Add CI-aware debug logging with auto-detection and centralized output #911
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.
Implements debug log collection for CI systems (GitHub Actions, GitLab CI, Azure DevOps, Bitbucket) with automatic debug mode detection and configurable log output location.
Implementation
CiLogHelper- Utility class for CI-aware logging configurationACTIONS_STEP_DEBUG,CI_DEBUG_TRACE,SYSTEM_DEBUG,BITBUCKET_PIPELINES_DEBUG_MODE)FCLI_DEBUG,FCLI_LOG_LEVEL,FCLI_LOG_FILE,FCLI_LOG_DIRenvironment variablesgetLogDir()API for programmatic access by CI integrationsFortifyCLIDynamicInitializerintegrationDocumentation
doc-resources/ci-debug-logging.md- Cross-platform CI integration patternsdoc-resources/github-action-v3-integration.md- GitHub Action v3 implementation guide with composite action exampleUsage
Testing
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:
example.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -Dorg.gradle.internal.worker.tmpdir=/home/REDACTED/work/fcli/fcli/fcli-core/fcli-common/build/tmp/test/work @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath3298343079857166540txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 2'(dns block)gitlab.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)/usr/bin/curl curl -L REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.