Skip to content

[ZEPPELIN-6670] Add Shared Notebook Core mount contract - #5469

Merged
tbonelee merged 1 commit into
apache:masterfrom
voidmatcha:ZEPPELIN-6670-shared-core-contract
Sep 13, 2026
Merged

[ZEPPELIN-6670] Add Shared Notebook Core mount contract#5469
tbonelee merged 1 commit into
apache:masterfrom
voidmatcha:ZEPPELIN-6670-shared-core-contract

Conversation

@voidmatcha

@voidmatcha voidmatcha commented Sep 9, 2026

Copy link
Copy Markdown
Member

What is this PR for?

Add @zeppelin/notebook-core as a shared package for the Angular host and React remote.

Define common types for the read-only snapshot, getSnapshot, subscribe, and mount props. Add dependency-boundary checks and connect the package build, typecheck, and unit tests to the existing Maven/CI lifecycle.

This change does not implement the Core runtime. Separate-build object identity and notebook route integration will be verified in ZEPPELIN-6674 and ZEPPELIN-6675.

What type of PR is it?

Improvement

What is the Jira issue?

ZEPPELIN-6670

How should this be tested?

The following checks passed locally in zeppelin-web-angular:

  • npm run test:notebook-core: 103 tests passed
  • npm run typecheck:notebook-core: passed
  • npm run test:shell: 49 tests passed
  • npm run check:notebook-parity-scenarios: 21 tests and the registry check passed
  • ESLint and Prettier checks for the changed code: passed

Screenshots (if appropriate)

No UI changes

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? Updated README and AGENTS.md with the check commands and file locations.

@voidmatcha
voidmatcha force-pushed the ZEPPELIN-6670-shared-core-contract branch 3 times, most recently from 4c2ba44 to 0cce93b Compare September 13, 2026 05:26
@voidmatcha
voidmatcha force-pushed the ZEPPELIN-6670-shared-core-contract branch from 0cce93b to 32f9efe Compare September 13, 2026 07:57
@tbonelee
tbonelee merged commit 788d45a into apache:master Sep 13, 2026
9 of 24 checks passed
@tbonelee

Copy link
Copy Markdown
Contributor

Merged into master

tbonelee pushed a commit that referenced this pull request Sep 13, 2026
…dencies

### What is this PR for?
Fix CI failure introduced by #5469 (already merged as 788d45a). Its `findReactNotebookConsumerViolations` scan restricted recursion to `consumers.has(target)`, but a consumer's own dependency (e.g. a helper file) is never itself added to `consumers`, so the scan stopped detecting forbidden transport imports reached through it. Reverts to the original unconditional recursion.

### What type of PR is it?
Bug Fix

### Todos

### What is the Jira issue?

### How should this be tested?
`npm run test:notebook-core`: the 3 previously-failing cases (`helper`/`javascript`/`require-outside`) now pass.

### Screenshots (if appropriate)
N/A

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No


Closes #5478 from voidmatcha/hotfix/import-boundary-consumer-scan.

Signed-off-by: ChanHo Lee <chanholee@apache.org>
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