Skip to content

feat(operator-demo-video): add DemoVideoGenerator module and Playwright automation foundation - #7594

Closed
xuang7 wants to merge 5 commits into
apache:mainfrom
xuang7:pr/operator-demo-c1-foundation
Closed

xuang7 wants to merge 5 commits into
apache:mainfrom
xuang7:pr/operator-demo-c1-foundation

Conversation

@xuang7

@xuang7 xuang7 commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

This PR adds the foundation for an operator demo video generator: a Playwright-based tool that records a short demo video per operator, to be linked from the operator docs under docs/reference/operators/.

Changes:

  • A new DemoVideoGenerator sbt module at docs/operator-demo-videos/ with the Playwright dependency. It is standalone. It compiles without the rest of the build.
  • The automation abstractions the tool is built from: fluent builders that accumulate named steps (ControllerBuilder/ControllerStep), a two-phase per-operator script trait (prepare = unrecorded scaffolding, execute = the recorded demo), and a fake on-screen cursor so recordings show where the automation is clicking.
  • Adds the recording configuration in TestDataConfig (base URL, viewport and video size, pacing, output directory); later PRs will add more defaults such as the datasets and template workflows.
  • Excludes docs/operator-demo-videos/ from the docs-to-website sync workflow: the module is build tooling, not docs content, so its sources are never published to the website and module-only pushes do not trigger a site sync.

Follow-up PRs add the UI controllers (login, navigation, drag-and-connect, form filling, execution), per-operator sample values, and the generator and runner that make the tool runnable end-to-end.

Any related issues, documentation, discussions?

Closes #7519

How was this PR tested?

No behavior change to any existing module. sbt DemoVideoGenerator/compile, scalafmtCheck, and scalafix --check all pass.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5)

…ht automation foundation

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file ci changes related to CI docs Changes related to documentations common labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @kunwp1
    You can notify them by mentioning @kunwp1 in a comment.

@codecov-commenter

codecov-commenter commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.37%. Comparing base (5021bc6) to head (81311a2).
⚠️ Report is 296 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7594      +/-   ##
============================================
+ Coverage     88.63%   92.37%   +3.73%     
- Complexity     4346     4586     +240     
============================================
  Files          1177     1173       -4     
  Lines         46894    47347     +453     
  Branches       5229     5306      +77     
============================================
+ Hits          41566    43736    +2170     
+ Misses         3568     2017    -1551     
+ Partials       1760     1594     -166     
Flag Coverage Δ
access-control-service 81.00% <ø> (+11.00%) ⬆️
agent-service 98.62% <ø> (+<0.01%) ⬆️
amber 88.96% <ø> (+4.24%) ⬆️
computing-unit-managing-service 73.67% <ø> (+13.28%) ⬆️
config-service 86.73% <ø> (+9.41%) ⬆️
file-service 82.59% <ø> (+13.54%) ⬆️
frontend 94.21% <ø> (+4.23%) ⬆️
notebook-migration-service 79.13% <ø> (+0.23%) ⬆️
pyamber 97.57% <ø> (+0.05%) ⬆️
workflow-compiling-service 77.19% <ø> (+19.29%) ⬆️

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xuang7

xuang7 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Could you take a look when you're available? Thanks! @carloea2

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 6 better · 🔴 7 worse · ⚪ 2 noise (<±5%) · 0 without baseline

CI benchmark results are noisy; treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 558 0.341 16,541/27,777/27,777 us 🔴 +90.2% / 🔴 +93.8%
🔴 bs=100 sw=10 sl=64 1,123 0.686 84,240/121,206/121,206 us 🔴 +22.5% / 🔴 +21.9%
🟢 bs=1000 sw=10 sl=64 1,443 0.881 693,824/754,474/754,474 us 🟢 +35.1% / 🟢 +29.9%
Baseline details

Latest main fcfd112 from 2026-08-23T12:53:07.359Z

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 558 tuples/sec 813.56 tuples/sec 833.1 tuples/sec -31.4% -33.0%
bs=10 sw=10 sl=64 MB/s 0.341 MB/s 0.497 MB/s 0.508 MB/s -31.3% -32.9%
bs=10 sw=10 sl=64 p50 16,541 us 11,994 us 11,860 us +37.9% +39.5%
bs=10 sw=10 sl=64 p95 27,777 us 14,607 us 14,334 us +90.2% +93.8%
bs=10 sw=10 sl=64 p99 27,777 us 19,651 us 18,194 us +41.4% +52.7%
bs=100 sw=10 sl=64 throughput 1,123 tuples/sec 1,077 tuples/sec 1,085 tuples/sec +4.2% +3.5%
bs=100 sw=10 sl=64 MB/s 0.686 MB/s 0.658 MB/s 0.662 MB/s +4.3% +3.6%
bs=100 sw=10 sl=64 p50 84,240 us 92,423 us 92,973 us -8.9% -9.4%
bs=100 sw=10 sl=64 p95 121,206 us 98,940 us 99,460 us +22.5% +21.9%
bs=100 sw=10 sl=64 p99 121,206 us 100,210 us 107,737 us +21.0% +12.5%
bs=1000 sw=10 sl=64 throughput 1,443 tuples/sec 1,069 tuples/sec 1,111 tuples/sec +35.0% +29.8%
bs=1000 sw=10 sl=64 MB/s 0.881 MB/s 0.652 MB/s 0.678 MB/s +35.1% +29.9%
bs=1000 sw=10 sl=64 p50 693,824 us 935,018 us 915,816 us -25.8% -24.2%
bs=1000 sw=10 sl=64 p95 754,474 us 988,029 us 959,066 us -23.6% -21.3%
bs=1000 sw=10 sl=64 p99 754,474 us 1,021,269 us 993,644 us -26.1% -24.1%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,358.31,200,128000,558,0.341,16541.39,27777.38,27777.38
1,100,10,64,20,1780.61,2000,1280000,1123,0.686,84240.27,121205.67,121205.67
2,1000,10,64,20,13859.08,20000,12800000,1443,0.881,693824.43,754474.04,754474.04

@carloea2 carloea2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The cursor setup after navigation does not run. The startup script only defines a function. Please pass the script body or call the function.

@xuang7
xuang7 requested a review from carloea2 August 13, 2026 23:45

@carloea2 carloea2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The cursor fix now runs the startup script and waits for the document. The module setup and workflow exclusion look good.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds the Playwright-based foundation for generating operator demo videos.

Changes:

  • Adds controller, script, cursor, and configuration abstractions.
  • Registers the new sbt module and dependencies.
  • Excludes build tooling from documentation synchronization.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
build.sbt Registers and aggregates the module.
docs/operator-demo-videos/build.sbt Configures dependencies and compilation.
ControllerContext.scala Defines controller steps and execution.
Utils.scala Adds Playwright cursor interactions.
TestDataConfig.scala Defines recording defaults.
OperatorScript.scala Defines operator demo phases.
sync-docs-to-site.yml Excludes tooling from website sync.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/operator-demo-videos/build.sbt Resolved
@xuang7
xuang7 requested a review from mengw15 August 20, 2026 19:52

@mengw15 mengw15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some comments

Comment thread build.sbt
.dependsOn(DAO % "test->test") // test scope dependency

// Playwright automation recording the per-operator demo videos linked from docs/reference/operators/.
lazy val DemoVideoGenerator = (project in file("docs/operator-demo-videos"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The module lives under docs/, so .github/labeler.yml gives a module-only PR just the docs label, and docs maps to no stacks in precheck's LABEL_STACKS. Follow-up PRs that only add files under docs/operator-demo-videos/** will therefore skip every Scala leg — no compile, no scalafmtCheckAll/scalafixAll, no tests. This PR is covered only because it also touches build.sbt (common) and .github/** (ci).


import scala.collection.mutable.ArrayBuffer

class ControllerBuilderSpec extends AnyFlatSpec with Matchers {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The spec passes locally (sbt DemoVideoGenerator/test, and it fails if execute() is mutated), but no CI leg runs it: the amber job's coverage step uses an explicit list (want=(DAO Auth Config Resource Util PyBuilder WorkflowCore WorkflowOperator WorkflowCompiler WorkflowExecutionService)), and scalafixAll --check only compiles the test sources. Separately, the module doesn't apply commonModuleSettings, so DemoVideoGenerator/jacoco emits HTML only — no jacoco.xml for the codecov glob to pick up.

@carloea2 carloea2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please fix the two CI issues Meng pointed out. Future changes under the demo video folder need to run compile, format, and tests. The new tests also need coverage output. The other review fixes look good.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has
not had any activity for 30 days. It will be closed in 7 days if no
further activity occurs.

If this PR is still relevant, please:

  • Push new commits or rebase onto the latest main, or
  • Comment with a status update, or
  • Address any open review feedback.

To exempt this PR from auto-close, a maintainer can add the pinned label.
Thank you for your contribution to Apache Texera (incubating)!

@github-actions github-actions Bot added the stale label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed due to 37 days of inactivity.
If you would like to continue this work, please re-open the PR or open a new
one referencing this. Thank you for your contribution.

@github-actions github-actions Bot closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI common dependencies Pull requests that update a dependency file docs Changes related to documentations stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the Docs module and the Playwright automation foundation

5 participants