-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(subscriber): add log_subscriber to write real-time logs to redis #735
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
2ae0d64
feat(log-subscriber): create subscriber
soma00333 493c96e
fix(log_subscriber): fix file name
soma00333 8fabc31
Merge branch 'main' into feat/log-subscriber/init
soma00333 130d6b0
feat(log_subscriber): add tests
soma00333 5235fb9
Merge branch 'feat/log-subscriber/init' of github.com:reearth/reearth…
soma00333 b67f6ee
feat(log_subscriber): add workflow
soma00333 916ec80
fix(log_subscriber): apply lint
soma00333 7e28570
fix(log_subscriber): fix lint
soma00333 9aaa478
chore(log_subscriber): add .env.example
soma00333 0205b70
chore(log_subscriber): update tool version in workflow
soma00333 dfc8928
fix(log_subscriber): fix test
soma00333 b84d0b0
chore(log_subscriber): add check to redis
soma00333 6fa0d93
fix(log_subscriber): fix NewRealMessage()
soma00333 0117c51
Merge branch 'main' into feat/log-subscriber/init
soma00333 f00a553
Rename resit_test.go to redis_test.go
soma00333 0ea2591
Merge branch 'feat/log-subscriber/init' of github.com:reearth/reearth…
soma00333 336c5c6
Update serialization to use JSON.Marshal for events
soma00333 7965a4b
Refactor serialization logic for logging events
soma00333 1fcbd03
Refactor GCS storage implementation for better abstraction
soma00333 3db60d0
Update saving log events to Redis with JSON serialization
soma00333 fa9028f
Merge branch 'main' into feat/log-subscriber/init
soma00333 97fd208
Refactor test for String.Clone method
soma00333 ecd3b3e
Merge branch 'main' of github.com:reearth/reearth-flow into feat/log-…
soma00333 10af632
Merge branch 'feat/log-subscriber/init' of github.com:reearth/reearth…
soma00333 097318e
Merge branch 'main' of github.com:reearth/reearth-flow into feat/log-…
soma00333 5224dd6
delete gcs integration
soma00333 69e4b7f
Refactor test for String Clone method
soma00333 e7756f0
Fix golangci-lint command in Makefile
soma00333 15cc724
Update expiration time to 12 hours for saving log to Redis
soma00333 d7040f0
Update paths to server/log_subscriber
soma00333 fa92b16
Remove unnecessary test parallelization in String_Clone test
soma00333 c95e6a1
Update Redis set expiration time to 12 hours in tests
soma00333 377bd6f
feat(log-subscriber): rename
soma00333 f2f4106
Merge branch 'main' into feat/log-subscriber/init
soma00333 dae1d41
Update log_subscriber to subscriber in CI workflow
soma00333 4642412
Update path to server subscriber in go.work file
soma00333 3885f50
Rename log-subscriber to subscriber for consistency
soma00333 a0e3b1e
Rename Redis files to log for consistency
soma00333 4ff81e7
resolve conflict
soma00333 c19af53
resolve conflixt
soma00333 d424b9e
Bump versions to 0.0.6 and 0.0.3 respectively
soma00333 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 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 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,43 @@ | ||
name: ci-subscriber | ||
on: | ||
workflow_call: | ||
env: | ||
GO_VERSION: "1.22" | ||
|
||
jobs: | ||
ci-subscriber-lint: | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'v') | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: set up | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59.1 | ||
args: --timeout=10m | ||
working-directory: server/subscriber | ||
|
||
ci-subscriber-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: set up | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
cache-dependency-path: server/subscriber/go.sum | ||
- name: test | ||
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m | ||
working-directory: server/subscriber | ||
- name: Send coverage report | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: subscriber |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
go 1.22.3 | ||
|
||
use ./server/api | ||
use ( | ||
./server/api | ||
./server/subscriber | ||
) |
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.
need bump up
cf. https://github.com/reearth/reearth-flow/actions/runs/13322507975/job/37209587038