Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Sep 19, 2025

Introduce new tests covering root map, dependent map, and empty array map scenarios.
Verify correct execution, task creation, and output aggregation for various flow configurations.

@changeset-bot
Copy link

changeset-bot bot commented Sep 19, 2025

⚠️ No Changeset found

Latest commit: b89cc1d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 19, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

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.

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

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 09-19-chore-add-integration-tests

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.

Copy link
Contributor Author

jumski commented Sep 19, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Sep 19, 2025

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit b89cc1d

Command Status Duration Result
nx affected -t lint typecheck test --parallel -... ❌ Failed 6m 33s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-06 15:33:53 UTC

@jumski jumski force-pushed the 09-19-chore-add-integration-tests branch 7 times, most recently from b63837a to ece6b73 Compare September 20, 2025 22:58
Comment on lines +315 to +319
const firstAttemptTasks = await sql`
SELECT status, attempts_count, error_message FROM pgflow.step_tasks
WHERE run_id = ${flowRun.run_id} AND step_slug = 'retryStep';
`;
const firstAttemptTask = firstAttemptTasks[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

The query result is stored in firstAttemptTasks array, but then the code immediately accesses firstAttemptTasks[0] without checking if the array contains any elements. This could lead to accessing properties on undefined if the query returns no results. Consider adding a null check before accessing the first element:

const firstAttemptTasks = await sql`...`;
if (firstAttemptTasks.length === 0) {
  // Handle empty result case
  return;
}
const firstAttemptTask = firstAttemptTasks[0];
Suggested change
const firstAttemptTasks = await sql`
SELECT status, attempts_count, error_message FROM pgflow.step_tasks
WHERE run_id = ${flowRun.run_id} AND step_slug = 'retryStep';
`;
const firstAttemptTask = firstAttemptTasks[0];
const firstAttemptTasks = await sql`
SELECT status, attempts_count, error_message FROM pgflow.step_tasks
WHERE run_id = ${flowRun.run_id} AND step_slug = 'retryStep';
`;
if (firstAttemptTasks.length === 0) {
throw new Error('No tasks found for retryStep');
}
const firstAttemptTask = firstAttemptTasks[0];

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@jumski jumski force-pushed the 09-19-add-task-index-in-start-tasks branch from 5543ded to c2a2e38 Compare October 5, 2025 18:59
@jumski jumski force-pushed the 09-19-chore-add-integration-tests branch from ece6b73 to 583047f Compare October 5, 2025 18:59
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2025

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-222.pgflow.pages.dev

📝 Details:

  • Branch: 09-19-chore-add-integration-tests
  • Commit: 195faf4808566f1ab763dd142d0e7673c2c8fd17
  • View Logs

_Last updated: _

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2025

🔍 Preview Deployment: Playground

Deployment successful!

🔗 Preview URL: https://pr-222--pgflow-demo.netlify.app

📝 Details:

  • Branch: 09-19-chore-add-integration-tests
  • Commit: 195faf4808566f1ab763dd142d0e7673c2c8fd17
  • View Logs

_Last updated: _

Introduce new tests covering root map, dependent map, and empty array map scenarios.
Verify correct execution, task creation, and output aggregation for various flow configurations.
@jumski jumski force-pushed the 09-19-chore-add-integration-tests branch from eed4e5e to b89cc1d Compare October 6, 2025 15:25
@jumski jumski force-pushed the 09-19-add-task-index-in-start-tasks branch from 2e8084f to 85630ea Compare October 6, 2025 15:25
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 7, 2025

Merge activity

  • Oct 7, 8:28 AM UTC: jumski added this pull request to the Graphite merge queue.
  • Oct 7, 8:29 AM UTC: CI is running for this pull request on a draft pull request (#232) due to your merge queue CI optimization settings.
  • Oct 7, 8:29 AM UTC: Merged by the Graphite merge queue via draft PR: #232.

graphite-app bot pushed a commit that referenced this pull request Oct 7, 2025
Introduce new tests covering root map, dependent map, and empty array map scenarios.
Verify correct execution, task creation, and output aggregation for various flow configurations.
@graphite-app graphite-app bot closed this Oct 7, 2025
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