Skip to content

added log parsing script#322

Open
ayush2-meesho wants to merge 7 commits into
async-data-loggerfrom
log-parser-script
Open

added log parsing script#322
ayush2-meesho wants to merge 7 commits into
async-data-loggerfrom
log-parser-script

Conversation

@ayush2-meesho
Copy link
Copy Markdown

🔁 Pull Request Template – BharatMLStack

Please fill out the following sections to help us review your changes efficiently.

Context:

Give a brief overview of the motivation behind this change. Include any relevant discussion links (Slack, documents, tickets, etc.) that help reviewers understand the background and the issue being addressed.

Describe your changes:

Mention the changes made in the codebase.

Testing:

Please describe how you tested the code. If manual tests were performed - please explain how. If automatic tests were added or existing ones cover the change - please explain how did you run them.

Monitoring:

Explain how this change will be tracked after deployment. Indicate whether current dashboards, alerts, and logs are enough, or if additional instrumentation is required.

Rollback plan

Explain rollback plan in case of issues.

Checklist before requesting a review

  • I have reviewed my own changes?
  • Relevant or critical functionality is covered by tests?
  • Monitoring needs have been evaluated?
  • Any necessary documentation updates have been considered?

📂 Modules Affected

  • horizon (Real-time systems / networking)
  • online-feature-store (Feature serving infra)
  • trufflebox-ui (Admin panel / UI)
  • infra (Docker, CI/CD, GCP/AWS setup)
  • docs (Documentation updates)
  • Other: ___________

✅ Type of Change

  • Feature addition
  • Bug fix
  • Infra / build system change
  • Performance improvement
  • Refactor
  • Documentation
  • Other: ___________

📊 Benchmark / Metrics (if applicable)

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c7746d2f-4519-4311-b955-5e1656833e8e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.


[project.optional-dependencies]
# Install zstandard if your logs are zstd-compressed (compression_enabled=True)
zstd = ["zstandard>=0.21.0"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified a blocking 🔴 issue in your code:
Dependency "$MATCH" uses a range operator. Pin to exact version with == or use a lockfile (e.g. uv.lock, pdm.lock, poetry.lock). Range pins allow auto-upgrades to compromised versions in CI.

To resolve this comment:

✨ Commit Assistant fix suggestion

Suggested change
zstd = ["zstandard>=0.21.0"]
zstd = ["zstandard==0.21.0"]
View step-by-step instructions
  1. Replace the version range operator (>=) in zstd = ["zstandard>=0.21.0"] with an exact version using ==, so the line reads zstd = ["zstandard==0.21.0"].
  2. Make sure that this pinned version (0.21.0) is tested and works as expected in your environment.
  3. Alternatively, if you need to support newer versions for a specific reason, consider adopting a lockfile (such as poetry.lock, pdm.lock, or uv.lock) to ensure deterministic installs, but do not use a range operator in the pyproject.toml for security-critical dependencies.

Pinning dependencies to exact versions helps prevent your project from unintentionally using untested or compromised versions released in the future.

💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by pyproject-dependency-range-pin.

You can view more details about this finding in the Semgrep AppSec Platform.

requires-python = ">=3.10"
dependencies = [
"inference-logging-client>=0.3.1",
"pandas>=1.5.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified a blocking 🔴 issue in your code:
Dependency "$MATCH" uses a range operator. Pin to exact version with == or use a lockfile (e.g. uv.lock, pdm.lock, poetry.lock). Range pins allow auto-upgrades to compromised versions in CI.

To resolve this comment:

✨ Commit Assistant fix suggestion

Suggested change
"pandas>=1.5.0",
"pandas==1.5.0",
View step-by-step instructions
  1. Change the dependency version specifier from a range (e.g. pandas>=1.5.0) to an exact version using ==, for example: "pandas==1.5.0", or preferably specify the exact version you plan to support (e.g. "pandas==2.2.2" if that's what is installed or tested with your code).
  2. Make the same change for any other dependencies using range operators in the [project].dependencies and [project.optional-dependencies] sections to avoid accidental upgrades.
  3. This prevents your code from automatically pulling newer, potentially incompatible or vulnerable versions of dependencies each time it is installed.
💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by pyproject-dependency-range-pin.

You can view more details about this finding in the Semgrep AppSec Platform.

description = "Parse asyncloguploader SSD log files into pandas DataFrames"
requires-python = ">=3.10"
dependencies = [
"inference-logging-client>=0.3.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Semgrep identified a blocking 🔴 issue in your code:
Dependency "$MATCH" uses a range operator. Pin to exact version with == or use a lockfile (e.g. uv.lock, pdm.lock, poetry.lock). Range pins allow auto-upgrades to compromised versions in CI.

To resolve this comment:

✨ Commit Assistant fix suggestion

Suggested change
"inference-logging-client>=0.3.1",
dependencies = [
"inference-logging-client==0.3.1",
"pandas>=1.5.0",
]
View step-by-step instructions
  1. Change the dependency specification from a range operator (>=, <=, etc.) to an exact version using == for all dependencies in your dependencies list and optional dependencies.
  2. For "inference-logging-client>=0.3.1", update it to the exact installed version, for example: "inference-logging-client==0.3.1" (replace with the correct version if different).
  3. Repeat this for other dependencies like pandas and zstandard, e.g. update "pandas>=1.5.0" to "pandas==1.5.0" and "zstandard>=0.21.0" to "zstandard==0.21.0" (adjust version as needed).
  4. Save your changes.

When dependencies are pinned to a specific version, the project avoids accidentally installing newer versions in CI/CD that may contain vulnerabilities or breaking changes.

💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by pyproject-dependency-range-pin.

You can view more details about this finding in the Semgrep AppSec Platform.

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