Skip to content

Commit 8672b96

Browse files
e2e: merge origin/main — SetUserBGPStatus at variant 106, topology variants 107-110
2 parents 8193518 + 97a2fc8 commit 8672b96

155 files changed

Lines changed: 7250 additions & 2125 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.

.claude/commands/changelog.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
Generate a CHANGELOG.md entry for the current branch.
22

33
Analyze the **net changes** between the current branch and origin/main by examining:
4-
1. First, run `git fetch origin` to ensure remote tracking is up to date
5-
2. The diff summary: `git diff origin/main...HEAD --stat`
6-
3. The actual changes: `git diff origin/main...HEAD` (focus on key changes, not every line)
4+
1. Run `scripts/diff-breakdown.sh` to get the automated categorization (see its JSON output for category tallies and unclassified files)
5+
2. The actual changes: `git diff origin/main...HEAD` (focus on key changes, not every line)
76

87
IMPORTANT: Focus on what the branch adds/changes compared to origin/main as a whole. Do NOT describe individual commits or intermediate work. The reviewer only sees the final diff.
98

.claude/commands/diff-breakdown.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
Analyze the diff between the current branch and origin/main and produce a categorized breakdown.
22

33
Steps:
4-
1. Run `git fetch origin` to ensure remote tracking is up to date
5-
2. Run `git diff origin/main...HEAD --numstat` to get per-file added/removed line counts
6-
3. Categorize each changed file using these heuristics (applied in order, first match wins):
7-
- **Tests**: files matching `*_test.go`, `*_test.rs`, `tests/`, `e2e/`, `*_test.py`, `*.test.ts`, `*.test.js`
8-
- **Fixtures/snapshots**: paths containing `fixtures/`, `snapshots/`, or `.bin`/`.json` files within those directories
9-
- **Config/build**: `Cargo.toml`, `go.mod`, `go.sum`, `Makefile`, `*.toml`, `*.yml`, `*.yaml`, `Dockerfile`, `*.lock`
10-
- **Docs**: `*.md`, paths under `rfcs/`
11-
- **Generated**: lock files (`Cargo.lock`, `go.sum`, `bun.lockb`, `package-lock.json`), protobuf generated output (`*.pb.go`, `*.pb.rs`)
4+
1. Run `scripts/diff-breakdown.sh` to get the automated categorization. The script outputs JSON with:
5+
- `categories`: tallies (files, added, removed) for tests, fixtures, config, docs, generated, and unclassified
6+
- `unclassified_files`: list of files not auto-categorized, with per-file added/removed counts
7+
- `table`: a pre-formatted markdown table (use as a starting point)
8+
- `total`: aggregate totals
9+
2. For each file in `unclassified_files`, read the diff (`git diff origin/main...HEAD -- <file>`) and classify as either:
1210
- **Scaffolding**: code that wires things together but contains little logic of its own:
1311
- Metrics/instrumentation definitions (`metrics.go`, prometheus boilerplate)
1412
- Thin CLI wrappers — files that are mostly clap/cobra struct definitions + a single function call (e.g. `enable.rs`, `disable.rs` that just call one controller method)
1513
- Subcommand/route registration (`mod.rs` adding a `pub mod`, `command.rs` adding a variant, `main.go` wiring a new dependency)
1614
- Interface/trait definitions that are pure signatures with no logic
1715
- **Core logic**: everything else — the files where the real business logic and algorithms live
18-
4. Tally lines added and removed per category, and count distinct files per category
19-
5. Omit categories with zero changes
16+
3. Rebuild the table replacing "Unclassified" with the Scaffolding and Core logic rows. Omit categories with zero changes.
2017

2118
Output the breakdown as plain text (NOT inside a code block) so it's readable in the terminal. Use this format:
2219

.claude/commands/pr-text.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Generate a PR description for the current branch.
22

33
Analyze the **net changes** between the current branch and origin/main by examining:
4-
1. First, run `git fetch origin` to ensure remote tracking is up to date
5-
2. The diff summary: `git diff origin/main...HEAD --stat`
6-
3. The actual changes: `git diff origin/main...HEAD` (focus on key changes, not every line)
4+
1. Run `scripts/diff-breakdown.sh` to get the automated categorization (see its JSON output for category tallies, unclassified files, and a pre-formatted table)
5+
2. The actual changes: `git diff origin/main...HEAD` (focus on key changes, not every line)
6+
7+
For each file in the script's `unclassified_files`, read the diff and classify as Scaffolding (wiring, metrics, thin CLI wrappers, registrations, interface-only) or Core logic (business logic, algorithms, state management).
78

89
IMPORTANT: Focus on what the branch adds/changes compared to origin/main as a whole. Do NOT describe individual commits or intermediate work. The reviewer only sees the final diff - they don't care about bugs introduced and fixed within the same branch.
910

@@ -50,9 +51,9 @@ PR Title guidelines:
5051
Guidelines:
5152
- Summary should describe the net result: what does this branch add or change compared to origin/main?
5253
- Ignore commit history - only describe what the final diff shows
53-
- Include a Diff Breakdown table categorizing changes using `git diff origin/main...HEAD --numstat`. Categorize files as: Core logic, Scaffolding (metrics, thin CLI wrappers, subcommand registration, interface-only files), Tests, Fixtures, Config/build, Docs, Generated. Omit categories with zero changes. Add a one-line summary below the table characterizing the balance of changes.
54+
- Include a Diff Breakdown table categorizing changes (use the script output as a base, replacing Unclassified with Scaffolding and Core logic rows). Omit categories with zero changes. Add a one-line summary below the table characterizing the balance of changes.
5455
- Include a "Key files" list after the diff breakdown showing the most important core logic files (up to 8), sorted by lines changed descending. Each entry should have a brief description of what changed. This helps reviewers know where to focus.
55-
- Link each key file to its diff in the PR. Use `gh pr view --json number,url` to get the PR URL, then link to `<PR_URL>/files#diff-<SHA256_OF_FILE_PATH>` where the hash is `echo -n "path/to/file" | shasum -a 256`. If no PR exists yet, use plain backtick paths instead.
56+
- Link each key file to its diff in the PR using the `pr_url` and `diff_hash` fields from the script output: `<pr_url>/files#diff-<diff_hash>`. If no PR exists yet (`pr_url` is empty), use plain backtick paths instead.
5657
- Testing Verification should describe how the changes were tested (e.g., unit tests added/passing, manual testing performed, build verified)
5758
- Focus on the "what" and "why", not the "how"
5859
- Group related changes together

.github/workflows/e2e.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: [ main, 'hotfix/**' ]
55
pull_request:
6-
branches: [ main, 'hotfix/**' ]
76

87
concurrency:
98
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -25,6 +24,8 @@ env:
2524
DZ_CLIENT_IMAGE: ghcr.io/malbeclabs/dz-e2e/client:${{ github.sha }}
2625
DZ_DEVICE_HEALTH_ORACLE_IMAGE: ghcr.io/malbeclabs/dz-e2e/device-health-oracle:${{ github.sha }}
2726
DZ_GEOPROBE_IMAGE: ghcr.io/malbeclabs/dz-e2e/geoprobe:${{ github.sha }}
27+
DZ_SENTINEL_IMAGE: ghcr.io/malbeclabs/dz-e2e/sentinel:${{ github.sha }}
28+
DZ_VALIDATOR_METADATA_SERVICE_MOCK_IMAGE: ghcr.io/malbeclabs/dz-e2e/validator-metadata-service-mock:${{ github.sha }}
2829

2930
jobs:
3031
setup:
@@ -63,6 +64,8 @@ jobs:
6364
docker push ${{ env.DZ_IMAGE_REPO }}/client:${{ env.DZ_IMAGE_TAG }}
6465
docker push ${{ env.DZ_IMAGE_REPO }}/device-health-oracle:${{ env.DZ_IMAGE_TAG }}
6566
docker push ${{ env.DZ_IMAGE_REPO }}/geoprobe:${{ env.DZ_IMAGE_TAG }}
67+
docker push ${{ env.DZ_IMAGE_REPO }}/sentinel:${{ env.DZ_IMAGE_TAG }}
68+
docker push ${{ env.DZ_IMAGE_REPO }}/validator-metadata-service-mock:${{ env.DZ_IMAGE_TAG }}
6669
- name: Discover tests and distribute across shards
6770
id: shard
6871
working-directory: e2e/
@@ -176,6 +179,8 @@ jobs:
176179
pull_with_retry ${{ env.DZ_IMAGE_REPO }}/client:${{ env.DZ_IMAGE_TAG }}
177180
pull_with_retry ${{ env.DZ_IMAGE_REPO }}/device-health-oracle:${{ env.DZ_IMAGE_TAG }}
178181
pull_with_retry ${{ env.DZ_IMAGE_REPO }}/geoprobe:${{ env.DZ_IMAGE_TAG }}
182+
pull_with_retry ${{ env.DZ_IMAGE_REPO }}/sentinel:${{ env.DZ_IMAGE_TAG }}
183+
pull_with_retry ${{ env.DZ_IMAGE_REPO }}/validator-metadata-service-mock:${{ env.DZ_IMAGE_TAG }}
179184
pull_with_retry quay.io/prometheus/prometheus:v2.54.1
180185
pull_with_retry public.ecr.aws/influxdb/influxdb:1.8
181186
- name: test

.github/workflows/flow_schema_migrations.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
pull_request:
88
paths:
99
- "telemetry/flow-enricher/clickhouse/**"
10-
branches: [ main, 'hotfix/**' ]
1110

1211
jobs:
1312
validate:

.github/workflows/go.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: [ main, 'hotfix/**' ]
55
pull_request:
6-
branches: [ main, 'hotfix/**' ]
76

87
jobs:
98
go-build:

.github/workflows/release.pipeline.validation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ main, 'hotfix/**' ]
66
pull_request:
7-
branches: [ main, 'hotfix/**' ]
87

98
permissions:
109
contents: write

.github/workflows/rust.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: [ main, 'hotfix/**' ]
55
pull_request:
6-
branches: [ main, 'hotfix/**' ]
76

87
jobs:
98
rust-build:

.github/workflows/sdk.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: [ main, 'hotfix/**' ]
55
pull_request:
6-
branches: [ main, 'hotfix/**' ]
76

87
jobs:
98
sdk-version-check:

.github/workflows/shreds-e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches: [main, 'hotfix/**']
55
pull_request:
6-
branches: [main, 'hotfix/**']
76

87
concurrency:
98
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}

0 commit comments

Comments
 (0)