Skip to content

Exclude TeamLog files from swiftformat to fix spec update timeout#473

Merged
cguldner merged 1 commit into
dropbox:masterfrom
cguldner:exclude-teamlog-from-format
Jul 23, 2026
Merged

Exclude TeamLog files from swiftformat to fix spec update timeout#473
cguldner merged 1 commit into
dropbox:masterfrom
cguldner:exclude-teamlog-from-format

Conversation

@cguldner

Copy link
Copy Markdown
Contributor

Summary

Excludes the two largest generated files from SwiftFormat so the spec update workflow's format step completes.

Problem

TeamLog.swift (~68k lines) and DBXTeamLog.swift (~66k lines) are by far the largest generated files. The wrapArguments rule is superlinear in file size and exceeds SwiftFormat's internal per-rule timeout on CI runners — the spec update workflow ran ~70 minutes and then failed:

error: wrapArguments rule timed out in .../TeamLog.swift.
##[error]Process completed with exit code 70.

There is no CLI flag to raise SwiftFormat's per-rule timeout.

Fix

Add the two TeamLog files to the SwiftFormat --exclude list. These are machine-generated event-type dumps.

Impact measured locally:

  • Before: 11+ minutes on a single TeamLog file (and a hard timeout on CI)
  • After: 7 seconds for the entire generated tree, 2 files skipped, 0 files changed on the currently-committed code

Test plan

  • swiftformat Source/SwiftyDropbox/Shared/Generated Source/SwiftyDropboxObjC/Shared/Generated completes in ~7s, skips the 2 TeamLog files, and produces no diff on current master
  • Re-trigger the spec update workflow and confirm the format step completes and the PR is created

🤖 Generated with Claude Code

TeamLog.swift (~68k lines) and DBXTeamLog.swift (~66k lines) cause the
wrapArguments rule to exceed SwiftFormat's internal per-rule timeout on
CI runners, failing the spec update workflow's format step with exit
code 70 after ~70 minutes.

Excluding these two generated files drops the format step from 11+
minutes per file to ~7 seconds for the entire generated tree, while
keeping formatting applied to every other generated file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cguldner
cguldner merged commit 461a73d into dropbox:master Jul 23, 2026
3 checks passed
@cguldner
cguldner deleted the exclude-teamlog-from-format branch July 23, 2026 20:16
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.

1 participant