Skip to content

Conversation

@mihaibudiu
Copy link
Contributor

Fixes #5366

Copilot AI review requested due to automatic review settings January 4, 2026 01:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables profiler visualization to work without requiring a pipeline configuration file. Previously, the profiler required a pipeline_config.json file to extract source code, but now it gracefully handles cases where this file is absent.

Key changes:

  • Made programCode/sources optional (can be undefined) throughout the profiler components
  • Modified profile loading logic to optionally read pipeline config instead of requiring it
  • Added safeguards in the Sources class to handle empty or missing source code

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ProfilerLayout.svelte Updated programCode prop type to allow undefined and removed unused export
ProfilerDiagram.svelte Updated programCode prop type to allow undefined
TabProfileVisualizer.svelte Made pipeline config file optional during profile loading; sources now conditionally extracted
profile.ts Changed error-throwing logic to conditionally set sources only when available
dataflow.ts Made Sources methods static, added getLine helper, and added empty-check guards in source formatting methods

Copy link
Contributor

@Karakatiza666 Karakatiza666 left a comment

Choose a reason for hiding this comment

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

Do mine and Copilot's (===) requested changes, and please run cd js-packages/web-console && bun run format - I see some formatting changes in web-console that the configured formatter will change
Otherwise looks good!

P.S. If some other files are affected by the formatter you can omit them from the PR, I will merge them later

Copy link
Contributor

@ryzhyk ryzhyk left a comment

Choose a reason for hiding this comment

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

I am still getting
image

Copy link
Contributor

@ryzhyk ryzhyk left a comment

Choose a reason for hiding this comment

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

I take it back. I forgot to include the dataflow graph.

@mihaibudiu mihaibudiu disabled auto-merge January 5, 2026 17:54
@mihaibudiu mihaibudiu changed the title [profiler] Enable profiler visualization in the absence of pipeline config [profiler] Enable profiler visualization in the absence of pipeline config or dataflow graph Jan 5, 2026
@mihaibudiu
Copy link
Contributor Author

I modified this further to not require the dataflow graph either

@mihaibudiu mihaibudiu enabled auto-merge January 5, 2026 22:31
@ryzhyk ryzhyk requested review from Karakatiza666 and ryzhyk and removed request for Karakatiza666 January 5, 2026 23:09
@ryzhyk ryzhyk dismissed Karakatiza666’s stale review January 5, 2026 23:12

Feedback was addressed

@mihaibudiu mihaibudiu added this pull request to the merge queue Jan 5, 2026
Merged via the queue into main with commit d6e6eb7 Jan 6, 2026
1 check passed
@mihaibudiu mihaibudiu deleted the issue5366 branch January 6, 2026 00:16
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.

[profiler] Profile should work without pipeline config

4 participants