Skip to content

Commit 7d58c63

Browse files
authored
revert: restore pre-campaign ClawSweeper state (#586)
1 parent 6248fba commit 7d58c63

118 files changed

Lines changed: 1552 additions & 23163 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/setup-action-ledger/action.yml‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ runs:
1111
- name: Export immutable action ledger context
1212
shell: bash
1313
env:
14-
ACTION_LEDGER_WORKTREE_PATH: ${{ inputs.worktree-path }}
1514
GH_TOKEN: ${{ github.token }}
1615
run: |
1716
set -euo pipefail
@@ -23,30 +22,11 @@ runs:
2322
echo "Unable to resolve immutable workflow run creation time." >&2
2423
exit 1
2524
fi
26-
worktree_path="${ACTION_LEDGER_WORKTREE_PATH:-.}"
27-
if [[ "$worktree_path" = /* ]]; then
28-
echo "Action ledger worktree path must be workspace-relative: $worktree_path" >&2
29-
exit 1
30-
fi
31-
if [ ! -d "$worktree_path" ]; then
32-
echo "Action ledger worktree path is not a directory: $worktree_path" >&2
33-
exit 1
34-
fi
35-
workspace_root="$(pwd -P)"
36-
ledger_root="$(cd "$worktree_path" && pwd -P)"
37-
case "$ledger_root" in
38-
"$workspace_root"|"$workspace_root"/*) ;;
39-
*)
40-
echo "Action ledger worktree path escapes the workspace: $worktree_path" >&2
41-
exit 1
42-
;;
43-
esac
4425
output_root="$RUNNER_TEMP/clawsweeper-action-ledger/${GITHUB_RUN_ID}/${GITHUB_RUN_ATTEMPT}/${GITHUB_JOB}"
4526
mkdir -p "$output_root"
4627
output_root="$(cd "$output_root" && pwd -P)"
4728
{
4829
echo "CLAWSWEEPER_ACTION_LEDGER_FORCE=1"
49-
echo "CLAWSWEEPER_ACTION_LEDGER_ROOT=$ledger_root"
5030
echo "CLAWSWEEPER_ACTION_LEDGER_OUTPUT_ROOT=$output_root"
5131
echo "GITHUB_RUN_STARTED_AT=$run_started_at"
5232
} >> "$GITHUB_ENV"

‎.github/workflows/commit-review.yml‎

Lines changed: 34 additions & 237 deletions
Large diffs are not rendered by default.

‎.github/workflows/deploy-crawl-remote.yml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ jobs:
241241
assertExactKeys(
242242
sourceConfig,
243243
[
244-
'$schema',
245-
'compatibility_date',
246-
'd1_databases',
244+
'$schema',
245+
'compatibility_date',
246+
'd1_databases',
247247
'limits',
248-
'main',
248+
'main',
249249
'name',
250250
'observability',
251251
'r2_buckets',
@@ -257,10 +257,10 @@ jobs:
257257
);
258258
if (
259259
sourceConfig.name !== 'crawl-remote' ||
260-
sourceConfig.main !== 'src/index.ts' ||
261-
sourceConfig.workers_dev !== true ||
260+
sourceConfig.main !== 'src/index.ts' ||
261+
sourceConfig.workers_dev !== true ||
262262
JSON.stringify(sourceConfig.limits) !== JSON.stringify({ cpu_ms: 300000 }) ||
263-
sourceConfig.vars?.CRAWL_REMOTE_RELEASE_SHA !== undefined
263+
sourceConfig.vars?.CRAWL_REMOTE_RELEASE_SHA !== undefined
264264
) {
265265
throw new Error('source Wrangler config has an unexpected deployment identity');
266266
}
@@ -294,10 +294,10 @@ jobs:
294294
const deploymentConfig = {
295295
name: sourceConfig.name,
296296
compatibility_date: sourceConfig.compatibility_date,
297-
workers_dev: sourceConfig.workers_dev,
298-
observability: sourceConfig.observability,
297+
workers_dev: sourceConfig.workers_dev,
298+
observability: sourceConfig.observability,
299299
limits: sourceConfig.limits,
300-
vars: sourceConfig.vars,
300+
vars: sourceConfig.vars,
301301
routes: sourceConfig.routes,
302302
d1_databases: sourceConfig.d1_databases,
303303
r2_buckets: sourceConfig.r2_buckets,
@@ -1181,10 +1181,10 @@ jobs:
11811181
assertExactKeys(
11821182
config,
11831183
[
1184-
'compatibility_date',
1185-
'd1_databases',
1184+
'compatibility_date',
1185+
'd1_databases',
11861186
'limits',
1187-
'name',
1187+
'name',
11881188
'observability',
11891189
'r2_buckets',
11901190
'routes',
@@ -1194,10 +1194,10 @@ jobs:
11941194
'deployment Wrangler config',
11951195
);
11961196
if (
1197-
config.name !== 'crawl-remote' ||
1198-
config.workers_dev !== true ||
1197+
config.name !== 'crawl-remote' ||
1198+
config.workers_dev !== true ||
11991199
JSON.stringify(config.limits) !== JSON.stringify({ cpu_ms: 300000 }) ||
1200-
config.vars?.CRAWL_REMOTE_RELEASE_SHA !== undefined ||
1200+
config.vars?.CRAWL_REMOTE_RELEASE_SHA !== undefined ||
12011201
Object.hasOwn(config, 'main') ||
12021202
Object.hasOwn(config, 'build')
12031203
) {

‎.github/workflows/github-activity-receipt-replay.yml‎

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)