Skip to content

Logging updates#5034

Merged
lukaszgryglicki merged 6 commits into
mainfrom
dev
May 7, 2026
Merged

Logging updates#5034
lukaszgryglicki merged 6 commits into
mainfrom
dev

Conversation

@lukaszgryglicki
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Lukasz Gryglicki <lgryglicki@cncf.io>

Assisted by [OpenAI](https://platform.openai.com/)

Assisted by [GitHub Copilot](https://github.com/features/copilot)
Copilot AI review requested due to automatic review settings May 7, 2026 06:52
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5920b81e-4c79-41ed-9da2-4f621132e959

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates logging formats and verbosity across legacy middleware and GitHub integration code, plus a helper script and docs, to make request attribution and CLA-gate decisions easier to diagnose while reducing overly-verbose debug output.

Changes:

  • Make utils/lookup_all_logs.sh default STAGE=dev only when unset, allowing an externally-provided stage to be honored.
  • Change legacy request logging to include backend=cla-backend-legacy in the request-path log line and remove redundant per-request backend marker lines; update README examples accordingly.
  • Reduce/reshape debug logging in cla-backend-go GitHub repository logic, promote some events/decisions to Info/Warn, and add additional context on legacy check-run creation failures.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
utils/lookup_all_logs.sh Defaults STAGE to dev only if not set, preserving caller-provided stage for log lookups.
cla-backend-legacy/README.md Updates documentation/examples for the new legacy request log line formats.
cla-backend-legacy/internal/middleware/request_log.go Emits request-path logs with an explicit backend marker and removes redundant backend-only log lines.
cla-backend-go/github/github_repository.go Refines log verbosity/levels around author details, caches, comment edits, CLA gate decisions, and check-run failure diagnostics.

Comment thread cla-backend-legacy/README.md
Comment thread cla-backend-legacy/internal/middleware/request_log.go
Comment thread cla-backend-go/github/github_repository.go
@lukaszgryglicki lukaszgryglicki merged commit f0d38ba into main May 7, 2026
18 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

coAuthors := GetCoAuthorsFromCommit(ctx, commit)
log.WithFields(f).Debugf("co-authors found: %s", coAuthors)
if len(coAuthors) > 0 {
log.WithFields(f).Debugf("co-authors found: %s", coAuthors)
"x-accepted-github-perms": resp.Response.Header.Get("X-Accepted-GitHub-Permissions"),
"x-oauth-scopes": resp.Response.Header.Get("X-OAuth-Scopes"),
"x-github-request-id": resp.Response.Header.Get("X-GitHub-Request-Id"),
}).Warnf("check-run create failed; see X-Accepted-GitHub-Permissions for required GitHub App permissions")
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.

3 participants