Skip to content

Conversation

@fogelito
Copy link
Contributor

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

📝 Walkthrough

Walkthrough

A logging statement is added to the Migrations worker that prints the endpoint value via Console::info() during migration processing, after credentials are computed. The change adds runtime observability without altering control flow, error handling, or functional behavior.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

The modification is a single, straightforward logging statement with no logic changes, control flow alterations, or side effects beyond improved visibility. The homogeneous nature of this change (one repeated action across one file) minimizes review complexity.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is a template with placeholder sections and no concrete details about the changeset, making it vague and uninformative. Fill in the template sections with specific details about what the PR does, why it's needed, and how changes were tested.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Log entrypoint' directly relates to the main change: adding a runtime log of the endpoint during migration processing.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-credentials

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

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

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
libpng 1.6.51-r0 CVE-2025-66293 HIGH
libpng-dev 1.6.51-r0 CVE-2025-66293 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

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: 0

🧹 Nitpick comments (1)
src/Appwrite/Platform/Workers/Migrations.php (1)

336-337: Verify if this logging is intentional and permanent.

This log statement only fires when the source is SourceAppwrite and credentials are initially empty—other migration paths and credential scenarios remain unlogged. Additionally, the endpoint URL may reveal internal infrastructure details, though this is typically low-sensitivity information.

A few points to consider:

  1. Scope: Is this targeted logging intentional for debugging a specific issue, or should endpoint logging be added consistently across all migration paths?
  2. Permanence: Should this remain in the codebase long-term, or is it temporary debug instrumentation that should be removed before merge?
  3. Context: The log message could be more helpful by including migration/project identifiers, e.g., Console::info('Migration ' . $migration->getId() . ' using endpoint: ' . $credentials['endpoint']);

If this is intended as permanent observability, consider whether similar logging should be added for other migration source types (Firebase, Supabase, NHost, CSV) to provide consistent visibility across all migration operations.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 22fba9d and cef868f.

📒 Files selected for processing (1)
  • src/Appwrite/Platform/Workers/Migrations.php (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-10-23T08:06:38.889Z
Learnt from: abnegate
Repo: appwrite/appwrite PR: 10546
File: src/Appwrite/Platform/Workers/Migrations.php:144-148
Timestamp: 2025-10-23T08:06:38.889Z
Learning: In the Appwrite codebase, migration workers receive already-validated data from queued jobs. Query validation using Query::parseQueries() happens at the API endpoint level (with try-catch for QueryException) before jobs are queued, so workers in src/Appwrite/Platform/Workers/Migrations.php don't need redundant validation.

Applied to files:

  • src/Appwrite/Platform/Workers/Migrations.php
⏰ 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). (2)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: Setup & Build Appwrite Image

@github-actions
Copy link

✨ Benchmark results

  • Requests per second: 1,127
  • Requests with 200 status code: 202,997
  • P99 latency: 0.17121925

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,127 1,220
200 202,997 219,609
P99 0.17121925 0.168317687

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