-
Notifications
You must be signed in to change notification settings - Fork 21
feat: backward and forward LET testing + runbook + tool #1502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arnaubennassar
wants to merge
25
commits into
develop
Choose a base branch
from
feat/back-and-for-let
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+9,804
β167
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2b1c0df
runbook v1
arnaubennassar 06084aa
add plan
arnaubennassar f40b94c
typo
arnaubennassar b5b6908
plan implemented
arnaubennassar 68b2ccf
case 1 passing
arnaubennassar 9e2d799
add vscode debugger in docker op-pp
arnaubennassar c2136f0
aggsender use same derivation logic than validator for FromBlock of tβ¦
arnaubennassar d660598
TestBackwardForwardLET_Case2 passing
arnaubennassar ef720dd
all tests pass individually
arnaubennassar 1d72c49
tests passing when running together
arnaubennassar 2b53bb8
parallelize l1 -> l2 and l2 -> l1 post test bridges to speed up tests
arnaubennassar ee6ff39
fix test speedup
arnaubennassar 48c1448
fix linter
arnaubennassar 1cedc0d
update aggsender docs
arnaubennassar b359f1b
lint
arnaubennassar 2dd1ec1
Merge branch 'develop' into feat/back-and-for-let
arnaubennassar 91555b3
fix uts
arnaubennassar e74f9a2
Merge branch 'develop' into feat/back-and-for-let
arnaubennassar 6f4563c
fix uts
arnaubennassar 8b6ada8
fix: resolve golangci-lint failures on CI
arnaubennassar 53efa0c
fix vulnerabilities related to docker debug
arnaubennassar 10edbee
imporvements from code review
arnaubennassar 3eb00ba
fix linter
arnaubennassar 9e55897
remove unused files
arnaubennassar 69e834a
Merge branch 'develop' into feat/back-and-for-let
arnaubennassar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Version control | ||
| .git/ | ||
| .gitignore | ||
|
|
||
| # Sensitive / secret files | ||
| .env | ||
| .env.* | ||
| *.pem | ||
| *.key | ||
| *.p12 | ||
| *.pfx | ||
| *.crt | ||
| *.cer | ||
|
|
||
| # Editor and OS artifacts | ||
| .idea/ | ||
| .vscode/ | ||
| *.swp | ||
| *.swo | ||
| .DS_Store | ||
|
|
||
| # Build artifacts (not needed β built inside the container) | ||
| /out/ | ||
|
|
||
| # Test fixtures and E2E env (may contain keys/configs) | ||
| test/e2e/envs/ | ||
|
|
||
| # Local developer configs | ||
| *.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Attach to aggkit in Docker (dlv)", | ||
| "type": "go", | ||
| "request": "attach", | ||
| "mode": "remote", | ||
| "host": "127.0.0.1", | ||
| "port": 40000, | ||
| "apiVersion": 2, | ||
| "showLog": true | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # ================================ | ||
| # STAGE 1: Build debug binary + dlv | ||
| # ================================ | ||
| FROM golang:1.25.7-alpine AS builder | ||
|
|
||
| RUN apk add --no-cache gcc musl-dev make sqlite-dev git | ||
|
Check warning on line 6 in Dockerfile.debug
|
||
|
|
||
| WORKDIR /home/aigent/repos/aggkit | ||
|
|
||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| COPY . . | ||
|
|
||
| # Install delve | ||
| RUN go install github.com/go-delve/delve/cmd/dlv@latest | ||
|
|
||
| # Build debug binary (disable inlining and optimizations for proper debugging) | ||
| RUN CGO_ENABLED=1 go build \ | ||
| -gcflags="all=-N -l" \ | ||
| -o /out/aggkit \ | ||
| ./cmd | ||
|
|
||
| # ================================ | ||
| # STAGE 2: Debug runtime image | ||
| # ================================ | ||
| FROM alpine:3.22 | ||
|
|
||
| RUN apk add --no-cache sqlite-libs ca-certificates \ | ||
| && addgroup -S appgroup \ | ||
| && adduser -S appuser -G appgroup | ||
|
|
||
| COPY --from=builder /go/bin/dlv /usr/local/bin/dlv | ||
| COPY --from=builder /out/aggkit /usr/local/bin/aggkit | ||
|
|
||
| # Run as non-root. Note: the container must be started with | ||
| # --cap-add=SYS_PTRACE so that delve can trace the target process. | ||
| USER appuser | ||
|
|
||
| EXPOSE 5576/tcp | ||
| EXPOSE 40000/tcp | ||
|
|
||
| # Default: run aggkit under delve headless. App args are provided by | ||
| # the compose file's `command:` block (appended after the `--` separator). | ||
| CMD ["dlv", "exec", "/usr/local/bin/aggkit", \ | ||
| "--headless", "--listen=:40000", "--api-version=2", \ | ||
| "--accept-multiclient", "--log"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this file is local, must not be part of git (in my case I have my own configurations there that will be overwritten)