Skip to content

Conversation

@michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented May 30, 2025

Resolves #16893

Summary by CodeRabbit

  • New Features
    • Introduced integration with TestLocally, enabling retrieval of test details, listing tests with advanced filters, and running new tests with customizable settings.
    • Added an event source that emits notifications for new or completed tests, supporting multiple filters and providing sample events.
  • Improvements
    • Enhanced configuration experience with dynamic property options such as servers, test IDs, owners, locations, target, scheduled status, browser, and viewport.
  • Chores
    • Updated package version and added dependencies for improved compatibility.

@vercel
Copy link

vercel bot commented May 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jun 4, 2025 3:03pm
pipedream-docs ⬜️ Ignored (Inspect) Jun 4, 2025 3:03pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jun 4, 2025 3:03pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 30, 2025

Walkthrough

The code introduces a new integration for TestLocally, implementing an app component with full API interaction capabilities, several actions for managing and retrieving tests, a polling source for new test runs, and supporting utilities. The package metadata is updated, and sample event data is provided for testing.

Changes

File(s) Change Summary
components/testlocally/testlocally.app.mjs Expanded from stub to full app: API methods, propDefinitions, pagination, and request handling implemented.
components/testlocally/actions/get-test/get-test.mjs New action: retrieves details of a specific test by ID via the TestLocally API.
components/testlocally/actions/list-tests/list-tests.mjs New action: lists tests with filtering and pagination support.
components/testlocally/actions/run-test/run-test.mjs New action: runs a test with configurable parameters via the API.
components/testlocally/sources/new-test-run/new-test-run.mjs New polling source: emits events for new test runs, supports filtering, maintains state.
components/testlocally/sources/new-test-run/test-event.mjs New: sample test event object for use with the source component.
components/testlocally/common/utils.mjs New utility: function to parse objects/JSON strings.
components/testlocally/package.json Updated: version bump to 0.1.0, added dependency on @pipedream/platform.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Action
    participant TestLocallyApp
    participant TestLocallyAPI

    User->>Action: Trigger "Run Test" action
    Action->>TestLocallyApp: runTest(params)
    TestLocallyApp->>TestLocallyAPI: POST /tests (params)
    TestLocallyAPI-->>TestLocallyApp: Test run response
    TestLocallyApp-->>Action: Response
    Action-->>User: Test run details
Loading
sequenceDiagram
    participant Source
    participant TestLocallyApp
    participant TestLocallyAPI

    Source->>TestLocallyApp: listTests(filters)
    TestLocallyApp->>TestLocallyAPI: GET /tests (filters)
    TestLocallyAPI-->>TestLocallyApp: List of tests
    TestLocallyApp-->>Source: Tests
    Source-->>Source: Emit new test events
Loading

Assessment against linked issues

Objective Addressed Explanation
Implement TestLocally component integration (API connectivity, prop definitions, pagination, etc.) (#16893)
Action: fetch-test-results (retrieve test run results by ID) (#16893)
Action: start-test-run (trigger a new test run with parameters) (#16893)
Source: new-test-run-instant (emit events for new test runs, with filtering) (#16893)
Actions: deploy-project, new-deployment-instant, new-error-instant (#16893) Actions and sources for deployment and error events are not present in this change.

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Addition of parseObject utility (components/testlocally/common/utils.mjs) Not directly requested in the linked issue; utility supports internal parsing but not an objective.
Sample event object (components/testlocally/sources/new-test-run/test-event.mjs) Sample event file is not explicitly required by the objectives.

Poem

In burrows deep, a rabbit spies
New tests and actions multiply!
With triggers, runs, and lists to see,
The code now hops with API glee.
From local tests to runs anew—
This patch brings carrots home to you! 🥕✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/testlocally/actions/run-test/run-test.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:799:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:723:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:706:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38)
at #link (node:internal/modules/esm/module_job:170:49)

components/testlocally/testlocally.app.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:799:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:723:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:706:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38)
at #link (node:internal/modules/esm/module_job:170:49)


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 20d8fa7 and fba0459.

📒 Files selected for processing (2)
  • components/testlocally/actions/run-test/run-test.mjs (1 hunks)
  • components/testlocally/testlocally.app.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/testlocally/actions/run-test/run-test.mjs
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
🔇 Additional comments (2)
components/testlocally/testlocally.app.mjs (2)

84-98: LGTM: Clean API client implementation.

The base URL and request methods are well-structured with proper authentication headers and consistent pattern.


99-125: LGTM: API methods follow consistent patterns.

All the API interaction methods (getTest, listServers, listTests, runTest) follow a consistent pattern and correctly use the base request method.

✨ Finishing Touches
  • 📝 Generate Docstrings

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.

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

🧹 Nitpick comments (3)
components/testlocally/actions/list-tests/list-tests.mjs (2)

2-2: Unused import detected.

The parseObject utility is imported but only used for owners and locations parameters (lines 76-77). Consider whether other array/object parameters like headers should also use this utility for consistency, or remove the import if not needed elsewhere.


68-96: Consider memory usage for large result sets.

The current implementation collects all paginated results into memory before returning them. For large datasets, this could cause memory issues. Consider either:

  1. Streaming results instead of collecting them all
  2. Adding documentation about memory considerations for large result sets
  3. Implementing a more conservative default for maxResults

The current logic is functionally correct but may not scale well.

  async run({ $ }) {
-    const results = this.testlocally.paginate({
+    const resultGenerator = this.testlocally.paginate({
      fn: this.testlocally.listTests,
      args: {
        $,
        params: {
          start: this.start,
          end: this.end,
          owners: parseObject(this.owners),
          locations: parseObject(this.locations),
          target: this.target,
          scheduled: this.scheduled,
          browser: this.browser,
          viewport: this.viewport,
        },
      },
      max: this.maxResults,
    });

    const tests = [];
-    for await (const test of results) {
+    for await (const test of resultGenerator) {
      tests.push(test);
+      // Consider yielding periodically for very large datasets
    }

    $.export("$summary", `Retrieved ${tests.length || 0} test${tests.length === 1
      ? ""
      : "s"}`);
    return tests;
  },
components/testlocally/testlocally.app.mjs (1)

75-86: Consider adding request timeout and retry logic.

API requests should have timeouts and potentially retry logic for better reliability.

     _makeRequest({
       $ = this, path, ...opts
     }) {
       return axios($, {
         url: `${this._baseUrl()}${path}`,
         headers: {
           Authorization: `Bearer ${this.$auth.api_key}`,
           Accept: "application/json",
         },
+        timeout: 30000, // 30 seconds
         ...opts,
       });
     },
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between b903cea and 20d8fa7.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • components/testlocally/actions/get-test/get-test.mjs (1 hunks)
  • components/testlocally/actions/list-tests/list-tests.mjs (1 hunks)
  • components/testlocally/actions/run-test/run-test.mjs (1 hunks)
  • components/testlocally/common/utils.mjs (1 hunks)
  • components/testlocally/package.json (2 hunks)
  • components/testlocally/sources/new-test-run/new-test-run.mjs (1 hunks)
  • components/testlocally/sources/new-test-run/test-event.mjs (1 hunks)
  • components/testlocally/testlocally.app.mjs (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Verify TypeScript components
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: Ensure component commits modify component versions
🔇 Additional comments (14)
components/testlocally/common/utils.mjs (1)

1-13: LGTM! Well-implemented utility function.

The parseObject function correctly handles flexible input parsing with appropriate fallbacks. The logic safely processes falsy values, attempts JSON parsing for strings, and gracefully returns the original value on parse errors or for non-string types.

components/testlocally/package.json (2)

3-3: Appropriate version bump for new functionality.

The version increment from 0.0.1 to 0.1.0 correctly reflects the addition of significant new functionality in this integration.


15-17:

✅ Verification successful

Verify the platform dependency version is current.

The @pipedream/platform dependency version ^3.0.3 should be verified to ensure it's the latest stable version and includes all necessary features for this integration.


🌐 Web query:

What is the latest version of @pipedream/platform npm package?

💡 Result:

Based on the search results, the latest version of the @pipedream/platform npm package is 3.0.3, which was last published about 8 months ago according to one source, and about 5 months ago according to another source[1][2]. This package provides Pipedream platform globals, including typing and runtime type checking functionality.

The package can be installed using the npm command:

npm i @pipedream/platform

The @pipedream/platform package is hosted on GitHub under the PipedreamHQ organization, and its repository can be found at github.com/PipedreamHQ/platform[1][2]. The package is released under the MIT license and has a size of approximately 57.8 kB.

It's worth noting that there's also an older package called @pipedreamhq/platform (with "hq" in the name), which has a different latest version (0.8.1) and was last published about 5 years ago[8].

Citations:


Dependency Version Confirmed

The @pipedream/platform dependency in components/testlocally/package.json is already at version ^3.0.3, which is the latest stable release available. No update is required.

components/testlocally/actions/list-tests/list-tests.mjs (1)

60-66:

❓ Verification inconclusive

Verify maxResults default aligns with API limits.

The default value of 100 for maxResults should be verified against TestLocally's API rate limits and pagination constraints to ensure it's appropriate.


🌐 Web query:

What are the TestLocally API rate limits and pagination constraints for listing tests?

💡 Result:

TestLocally API Rate Limits and Pagination Constraints for Listing Tests

Based on the search results, there is no official documentation specifically for the "TestLocally" API rate limits and pagination constraints. However, I can summarize best practices and typical patterns from reputable API providers and documentation that you are likely to encounter or can expect:

API Rate Limiting Practices

  • Most APIs enforce rate limiting to protect against excessive usage. Common strategies include per-minute and per-hour quotas, and sometimes a burst rate for short-term spikes[1][2][5].
    • Example policies: 60 requests per minute, 1000 requests per hour, and a burst of up to 10 requests per second[1].
  • APIs typically communicate rate limits via headers such as:
    • X-Rate-Limit-Limit (maximum quota)
    • X-Rate-Limit-Remaining (remaining requests in the current window)
    • X-Rate-Limit-Reset (timestamp or seconds until quota reset)
    • Retry-After (seconds until allowed to retry after exceeding limits)[1][3].
  • On exceeding limits, APIs return a 429 Too Many Requests status, often with instructions on when it is safe to retry[1][3][9].

Pagination Constraints for Listing Resources (e.g., Tests)

  • APIs that return large data sets commonly implement pagination to control response size and prevent performance issues[6][10][8].
  • Standard pagination parameters:
    • page or page_number: Which page of results to fetch.
    • page_size or limit: How many records to return per page.
  • Many APIs default the page size (e.g., 20, 50, or 100 records per page) but usually allow consumers to specify a smaller or larger page size, sometimes with a documented maximum (to preserve performance)[6][8][10].
  • Pagination responses may also include indicators like next_page or flags (e.g., additional_pages) to inform clients if more pages exist[8].
  • Good API practice is to document maximum allowed values and expected patterns for paginated endpoints, including edge case handling when pages are empty or incomplete[6][10].

Typical Example (not specific to TestLocally but widely adopted):

  • Rate limit: 60 requests per minute per user.
  • Pagination:
    • Default: 50 results per page.
    • Maximum allowed: 100 results per page.
    • Use page and page_size parameters for navigation.

What to Do If You Need the Specifics for "TestLocally"

  • Check the official API documentation for TestLocally (not covered in these search results).
  • Look for rate limit headers in actual API responses when making requests.
  • Observe for a 429 status code if exceeding limits.
  • Review examples for pagination parameters such as page, limit, or similar, and whether a maximum page size is enforced.

If TestLocally follows standard practices, expect documented (or discoverable via headers) rate limits and the use of page/size or similar parameters for paginated endpoints. Always consult the vendor's official documentation or support channels for authoritative values.

Citations:


Verify default maxResults against TestLocally’s pagination limits

We weren’t able to find official documentation for TestLocally’s maximum page size or rate-limit headers. Please confirm that using a default of 100 for maxResults is supported by the API and won’t trigger errors or performance issues.

Suggestions for verification:

  • Consult TestLocally’s official API docs or support channels for the maximum allowed page size.
  • Inspect actual API responses for pagination headers or error codes (e.g., a 429 status or a max-page-size header).
  • If an upper limit is lower than 100, adjust the default (or document the override) to match the vendor constraints.
components/testlocally/sources/new-test-run/test-event.mjs (1)

1-79: Comprehensive and realistic test fixture.

This test event fixture provides excellent coverage with:

  • Multiple server locations (brisbane, luxembourg, hongkong)
  • Both successful and error scenarios (safety-check error in hongkong)
  • Complete metadata including timestamps, URLs, and geographic data
  • Realistic data structure that matches the API response format

The inclusion of error scenarios makes this particularly valuable for testing edge cases.

components/testlocally/actions/get-test/get-test.mjs (1)

6-6:

❓ Verification inconclusive

Verify the documentation URL endpoint.

The documentation URL references /api_v0_test_results, but based on the method name getTest and the endpoint path in the app file (/tests/${testId}), it should likely reference a different endpoint for retrieving a single test.


🌐 Web query:

What is the correct TestLocally API documentation URL for retrieving a single test by ID?

💡 Result:

Based on the search results provided, I cannot find specific information about the TestLocally API documentation URL for retrieving a single test by ID.

The search results mention TestLocally as a tool that "takes location-aware screenshots"[2] and that allows users to "integrate screenshot functionality directly into CI/CD pipeline, testing tools, or internal dashboards"[1], but there is no specific API endpoint documentation for retrieving a single test by ID.

While the search results do reference that there is API documentation available for TestLocally ("View the API documentation here"[1]), they do not provide the actual URL or specific API endpoints for retrieving tests by ID.

The search results contain information about various other testing APIs and frameworks (like Clarifai, RunPod, Snowpark Python, qTest), but none of these appear to be related to the TestLocally API specifically.

If you're looking for the TestLocally API documentation URL for retrieving a single test by ID, you might want to check the official TestLocally documentation which should be available through their website.

Citations:


🏁 Script executed:

#!/bin/bash
# Locate and display the contents of get-test.mjs for context
echo "=== Locating get-test.mjs ==="
fd --absolute-path "get-test.mjs"
echo "=== Displaying first 200 lines ==="
sed -n '1,200p' components/testlocally/actions/get-test/get-test.mjs

Length of output: 973


🏁 Script executed:

#!/bin/bash
# Locate the app integration file
echo "=== Locating testlocally.app.mjs ==="
fd --absolute-path testlocally.app.mjs

# Display the first 200 lines for context
echo "=== Displaying first 200 lines of testlocally.app.mjs ==="
sed -n '1,200p' components/testlocally/testlocally.app.mjs

# Search for the getTest method definition
echo "=== Searching for getTest implementation ==="
rg -n "getTest" -C3 components/testlocally/testlocally.app.mjs

Length of output: 3931


Documentation link mismatch for single-test endpoint

The action’s description links to /api_v0_test_results, but the getTest method calls GET https://testlocal.ly/api/v0/tests/{testId}. Please verify and update the docs URL to the correct page for retrieving a single test by ID—ensuring both the domain (testlocal.ly vs. testlocally.readme.io) and path (/tests/{testId}) match your official documentation.

• File: components/testlocally/actions/get-test/get-test.mjs, line 6
Update the description link to the correct single-test endpoint docs.

components/testlocally/actions/run-test/run-test.mjs (1)

29-34:

❌ Incorrect review comment

Review the use of parseObject for array-type properties.

The servers prop is defined as string array in the app's propDefinitions, and clicks is defined as string[]. Using parseObject on these properties might cause issues if they're already arrays.

       data: {
         target: this.target,
         browser: this.browser,
         viewport: this.viewport,
-        servers: parseObject(this.servers),
+        servers: this.servers,
         headers: parseObject(this.headers),
         skipCompression: this.skipCompression,
-        clicks: parseObject(this.clicks),
+        clicks: this.clicks,
       },

Also applies to: 47-52, 61-61, 64-64


🏁 Script executed:

#!/bin/bash
# Check the parseObject implementation to understand its behavior
cat components/testlocally/common/utils.mjs

Length of output: 256


No change required: parseObject is safe for array props

The parseObject utility returns non-string values (including arrays) unchanged, so applying it to this.servers or this.clicks has no adverse effect and maintains consistency for JSON-string inputs.

Likely an incorrect or invalid review comment.

components/testlocally/sources/new-test-run/new-test-run.mjs (7)

1-4: LGTM! Clean import structure.

The imports are well-organized and all necessary dependencies are included appropriately.


6-12: LGTM! Proper component metadata.

The component definition follows Pipedream conventions correctly with appropriate key, name, description, version, type, and deduplication strategy.


13-58: LGTM! Well-structured props definition.

The props are properly defined using the propDefinition pattern to leverage the TestLocally app's prop definitions for consistent filtering options.


111-114: LGTM! Appropriate initialization logic.

The deploy hook correctly initializes the component by processing up to 25 recent tests, which is a reasonable limit for initial setup.


116-118: LGTM! Clean run method implementation.

The run method correctly calls processEvent without a limit to process all new tests since the last run.


119-119: LGTM! Sample emit included for testing.

Good practice to include sample emit data for component testing and development.


90-103: ⚠️ Potential issue

Verify timestamp logic and add error handling.

The timestamp filtering logic has a potential issue that could cause missed events in edge cases.

Issue 1: Edge case with identical timestamps
If multiple tests have the same created timestamp as lastTs, the current logic (test.created > lastTs) will skip all tests with that exact timestamp, potentially missing events.

Issue 2: Missing error handling
The API call could fail and cause the component to crash without proper error handling.

Apply this diff to address the timestamp comparison and add error handling:

  async processEvent(max) {
    const lastTs = this._getLastTs();
-   const results = this.testlocally.paginate({
-     fn: this.testlocally.listTests,
-     args: {
-       params: {
-         owners: parseObject(this.owners),
-         locations: parseObject(this.locations),
-         target: this.target,
-         scheduled: this.scheduled,
-         browser: this.browser,
-         viewport: this.viewport,
-       },
-     },
-     max,
-   });
+   try {
+     const results = this.testlocally.paginate({
+       fn: this.testlocally.listTests,
+       args: {
+         params: {
+           owners: parseObject(this.owners),
+           locations: parseObject(this.locations),
+           target: this.target,
+           scheduled: this.scheduled,
+           browser: this.browser,
+           viewport: this.viewport,
+         },
+       },
+       max,
+     });

    const tests = [];
    for await (const test of results) {
-     if (test.created > lastTs) {
+     if (test.created >= lastTs) {
        tests.push(test);
      } else {
        break;
      }
    }

    if (!tests.length) {
      return;
    }

    this._setLastTs(tests[0].created);
+   } catch (error) {
+     console.error("Error processing TestLocally events:", error);
+     throw error;
+   }

Likely an incorrect or invalid review comment.

lcaresia
lcaresia previously approved these changes Jun 3, 2025
@michelle0927
Copy link
Collaborator Author

/approve

@michelle0927 michelle0927 merged commit 27ae00a into master Jun 5, 2025
11 checks passed
@michelle0927 michelle0927 deleted the issue-16893 branch June 5, 2025 15:49
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.

[Components] testlocally

3 participants