Skip to content

feat(log-collector): adds release setup and readme docs#1714

Merged
ygrishajev merged 1 commit intomainfrom
feat/log-collector
Jul 22, 2025
Merged

feat(log-collector): adds release setup and readme docs#1714
ygrishajev merged 1 commit intomainfrom
feat/log-collector

Conversation

@ygrishajev
Copy link
Contributor

@ygrishajev ygrishajev commented Jul 22, 2025

Summary by CodeRabbit

  • New Features

    • Introduced automated release and Docker image build workflows for the Log Collector application.
    • Added a release script and tooling to streamline versioning and publishing for Log Collector.
  • Documentation

    • Added comprehensive README for the Log Collector, including setup, usage, and roadmap details.

@ygrishajev ygrishajev requested a review from a team as a code owner July 22, 2025 07:42
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 22, 2025

Warning

Rate limit exceeded

@ygrishajev has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 59 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between feee385 and 6ed102a.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .github/workflows/create-pre-release-pr.yml (1 hunks)
  • .github/workflows/log-collector-release.yml (1 hunks)
  • .github/workflows/reusable-create-github-release.yml (1 hunks)
  • apps/log-collector/README.md (1 hunks)
  • apps/log-collector/package.json (2 hunks)

Walkthrough

This change introduces automated release and Docker build workflows for the "log-collector" app. It updates existing release automation scripts to support this app, adds a dedicated workflow for its release and Docker image build, and provides a new README and npm release script for the app.

Changes

File(s) Change Summary
.github/workflows/create-pre-release-pr.yml Added apps/log-collector to the npm release automation step.
.github/workflows/log-collector-release.yml New workflow: automates release creation and Docker image build/push for log-collector on main branch changes.
.github/workflows/reusable-create-github-release.yml Added conditional for "log-collector" app to set the correct git tag format.
apps/log-collector/README.md New README: describes features, deployment, development, and roadmap for log-collector.
apps/log-collector/package.json Added "release" npm script and @akashnetwork/releaser as a devDependency.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant GitHub Actions
    participant Docker Registry

    Developer->>GitHub Actions: Push changes to apps/log-collector/package.json on main
    GitHub Actions->>GitHub Actions: Run log-collector-release.yml
    GitHub Actions->>GitHub Actions: Create release (reusable workflow)
    GitHub Actions->>GitHub Actions: Build Docker image (if release created)
    GitHub Actions->>Docker Registry: Push Docker image with git_tag
Loading

Estimated code review effort

2 (~15 minutes)

Possibly related PRs

Suggested reviewers

  • stalniy

Poem

In the meadow of code, a log rabbit hops,
Automating releases with diligent stops.
Docker images built, with tags so neat,
New scripts and docs make the workflow complete.
With every push, the logs now sing—
Oh, what joy these changes bring! 🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ygrishajev ygrishajev force-pushed the feat/log-collector branch from c0aba83 to feee385 Compare July 22, 2025 07:43
@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.40%. Comparing base (955b466) to head (6ed102a).
Report is 9 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1714      +/-   ##
==========================================
- Coverage   72.41%   72.40%   -0.02%     
==========================================
  Files         607      607              
  Lines       14160    14160              
  Branches     2405     2405              
==========================================
- Hits        10254    10252       -2     
+ Misses       3598     3588      -10     
- Partials      308      320      +12     
Flag Coverage Δ
api 80.10% <ø> (-0.03%) ⬇️
deploy-web 56.32% <ø> (ø)
log-collector 89.74% <ø> (ø)
notifications 87.25% <ø> (ø)
provider-console 80.95% <ø> (ø)
provider-proxy 84.35% <ø> (ø)

see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
.github/workflows/create-pre-release-pr.yml (1)

90-90: Release step added correctly – keep the list sorted for sanity

The new log-collector release invocation mirrors the existing pattern and should work.
Minor nit: maintain alphabetical order to ease scanning (log-collector should appear after notifications but before stats-web if you keep strict ordering). Not critical, just readability.

apps/log-collector/package.json (1)

42-43: Redundant wildcard-version internal dep

Wild-carding "@akashnetwork/releaser": "*" pins nothing and can lead to non-reproducible builds. Prefer an explicit semver range (^), or rely on the root workspace version instead of duplicating here.

apps/log-collector/README.md (2)

13-16: Specify language for fenced block to satisfy markdown-lint

MD040 complaints – add text (or bash) after the triple back-ticks.

-```
+```text
 ghcr.io/akash-network/log-collector

---

`161-166`: **Typo in docker flag**

`-env-file` → `--env-file`

```diff
-docker run -env-file apps/log-collector/.env.local log-collector:local
+docker run --env-file apps/log-collector/.env.local log-collector:local
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 955b466 and feee385.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .github/workflows/create-pre-release-pr.yml (1 hunks)
  • .github/workflows/log-collector-release.yml (1 hunks)
  • .github/workflows/reusable-create-github-release.yml (1 hunks)
  • apps/log-collector/README.md (1 hunks)
  • apps/log-collector/package.json (2 hunks)
🪛 markdownlint-cli2 (0.17.2)
apps/log-collector/README.md

13-13: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
apps/log-collector/README.md

13-13: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: validate / validate-app
  • GitHub Check: test-build
  • GitHub Check: validate / validate-app
  • GitHub Check: test-build
  • GitHub Check: validate / validate-app
  • GitHub Check: test-build
🔇 Additional comments (2)
apps/log-collector/package.json (1)

23-24: Missing release-it dependency may break the release script

"release": "release-it" assumes release-it is available in the workspace.
@akashnetwork/releaser may wrap it, but nothing here (or in root?) guarantees that a binary named release-it is on the PATH when the per-package script runs (npm run release -w apps/log-collector).

Add an explicit devDependency, or change the script to invoke the wrapper provided by @akashnetwork/releaser.

   "devDependencies": {
+    "release-it": "^16.1.0",
.github/workflows/reusable-create-github-release.yml (1)

63-65: Good – new tag branch added

log-collector/v<version> branch follows the existing convention. No issues spotted.

@ygrishajev ygrishajev force-pushed the feat/log-collector branch from feee385 to f24a565 Compare July 22, 2025 07:58
@ygrishajev ygrishajev force-pushed the feat/log-collector branch from f24a565 to 6ed102a Compare July 22, 2025 07:58
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.

2 participants

Comments