Skip to content

Agent development conflicts#68

Merged
Demonstrandum merged 5 commits into
masterfrom
cursor/agent-development-conflicts-2742
Mar 11, 2026
Merged

Agent development conflicts#68
Demonstrandum merged 5 commits into
masterfrom
cursor/agent-development-conflicts-2742

Conversation

@Demonstrandum

Copy link
Copy Markdown
Owner

Motivation for features / changes

This PR resolves merge conflicts from upstream tensorflow/tensorboard PR #67, integrating recent changes while preserving tensorbored's specific customizations and build configurations. The primary goal was to update the codebase with upstream improvements and dependency changes (e.g., pkg_resources removal, Angular 16 upgrade) without regressing tensorbored-specific features or build targets.

Technical description of changes

This PR merges three upstream tensorflow/tensorboard commits:

  1. Remove pkg_resources dependency (Remove runtime pkg_resources dependency in default and server_ingester tensorflow/tensorboard#7057): Switches to importlib.metadata and packaging.version.
  2. Angular 15 → 16 upgrade (Webapp Angular upgrade 15 to 16 tensorflow/tensorboard#7056): Updates zone.js, uses ViewContainerRef.createComponent(), and applies ESM imports/patches.
  3. Drop macOS CI for data-server (Removed mac version not supported anymore to avoid unnecessary CI tasks tensorflow/tensorboard#7069): Upstream removed macOS CI for data-server; this PR retains tensorbored's macOS CI for the data-server.

Seven conflicts were resolved:

  • .github/workflows/ci.yml: Retained macos-14 for build-data-server-pip (overriding upstream's removal).
  • tensorboard/version_test.py: Deleted, as tensorbored/version_test.py already exists with equivalent changes.
  • tensorbored/BUILD: Kept tensorbored paths and removed the now-unused expect_pkg_resources_installed rule.
  • tensorbored/data/BUILD: Kept tensorbored paths.
  • tensorbored/data/server_ingester.py: Kept tensorbored imports and the direct Version() import style.
  • tensorbored/default.py: Kept tensorbored imports and the version-branched _get_entry_points pattern.
  • tensorbored/default_test.py: Cleaned up a duplicate FakeEntryPoint class and adapted upstream's test pattern for _get_entry_points.

Auto-merged files (Angular 16 webapp changes, package.json, yarn.lock, defs.bzl, patches) were integrated.

Screenshots of UI changes (or N/A)

N/A

Detailed steps to verify changes work correctly (as executed by you)

  1. Verified no merge conflict markers (<<<<<<<, =======, >>>>>>>) remain in any files.
  2. Confirmed all Python files compile cleanly.
  3. Spot-checked auto-merged webapp files (e.g., zone.js import paths, createComponent usage) for correct Angular 16 upgrade application.
  4. Verified no remaining references to pkg_resources in the codebase after its removal.
  5. Confirmed macos-14 is present in .github/workflows/ci.yml for the build-data-server-pip job.

Alternate designs / implementations considered (or N/A)

N/A - The primary goal was to resolve conflicts following existing project conventions and user requirements (e.g., retaining macOS CI).


Open in Web Open in Cursor 

0xmagnus91 and others added 5 commits March 4, 2026 18:30
tensorflow#7057)

## Motivation for features / changes

Fixes tensorflow#7003.

`pkg_resources` is removed in newer setuptools, which can break
TensorBoard at import/runtime. This change removes runtime reliance on
`pkg_resources` in the two affected code paths.

## Technical description of changes

- Replaced dynamic plugin discovery in `tensorboard/default.py`:
  - from `pkg_resources.iter_entry_points(...)`
- to `importlib.metadata.entry_points(...)` with compatibility handling
for different Python return shapes.
- Replaced version parsing in `tensorboard/data/server_ingester.py`:
  - from `pkg_resources.parse_version(...)`
  - to `packaging.version.parse(...)`.
- Updated related tests:
- `tensorboard/default_test.py` now patches `_iter_entry_points` and
uses `load()`-style fake entry points.
- `tensorboard/version_test.py` now validates PEP 440 behavior using
`packaging.version`.
- Updated Bazel deps to use `expect_packaging_installed` where
`packaging` is now required.

## Detailed steps to verify changes work correctly (as executed by you)

Executed locally in an isolated venv:

- `python -m py_compile tensorboard/default.py
tensorboard/default_test.py tensorboard/data/server_ingester.py
tensorboard/version_test.py`
- `PYTHONPATH=. python tensorboard/version_test.py` (passes)

Attempted but environment-limited locally:

- `bazel test //tensorboard:version_test //tensorboard:default_test
//tensorboard/data:server_ingester_test` (bazel not available in local
shell)
- Direct execution of `default_test.py` and `server_ingester_test.py`
without Bazel-generated artifacts hit local environment/import
constraints.

## Alternate designs / implementations considered (or N/A)

- N/A
## Motivation for features / changes
This PR is the first step in a planned major Angular upgrade cycle,
where each major version will be delivered in a separate PR,
incrementally progressing until the project reaches Angular 20.

This specific PR upgrades TensorBoard from Angular 15 to Angular 16,
initiating the migration path toward Angular 20+.

Keeping the framework and aligned dependencies (NgRx, TypeScript, RxJS,
zone.js, etc.) up to date ensures continued compatibility, security
support, and maintainability, while preparing the project for future
Angular features and ecosystem improvements.

## Technical description of changes
Upgrade the TensorBoard web application from Angular 15 to Angular 16
following TensorBoard’s DEVELOPMENT.md guidelines and the official
Angular migration guide.

## Detailed steps to verify changes work correctly (as executed by you)
- Follow steps to run Tensorboard from clean state
https://github.com/tensorflow/tensorboard/blob/master/DEVELOPMENT.md#how-to-develop-tensorboard
- Execute docker build
- Run with iBazel
…ks (tensorflow#7069)

## Motivation for features / changes
This MacOS version is not supported anymore as we intend to reduce
maintenance we opt for removing this task.

## Technical description of changes
This line defines the platforms on which the job runs.
…, drop macOS CI)

Merge three upstream commits:
- Remove runtime pkg_resources dependency (tensorflow#7057): uses importlib.metadata
  and packaging.version instead. TensorBored already migrated to this in
  prior PRs; conflicts resolved by keeping tensorbored imports/paths.
- Angular 15 to 16 upgrade (tensorflow#7056): zone.js 0.13, ViewContainerRef.createComponent,
  ESM imports for three OrbitControls, patch-package patches for build tooling.
- Drop macOS from data-server pip CI (tensorflow#7069): Ubuntu-only build matrix.

Conflict resolutions:
- .github/workflows/ci.yml: accept upstream (drop macOS platform)
- tensorboard/version_test.py: delete (already renamed to tensorbored/)
- tensorbored/BUILD: keep tensorbored paths, drop expect_pkg_resources_installed
- tensorbored/data/BUILD: keep tensorbored paths
- tensorbored/data/server_ingester.py: keep tensorbored imports and Version()
- tensorbored/default.py: keep tensorbored imports and _get_entry_points pattern
- tensorbored/default_test.py: clean up duplicate FakeEntryPoint, use _get_entry_points mock

Co-authored-by: Samuel <samuel@knutsen.co>
Co-authored-by: Samuel <samuel@knutsen.co>
@cursor

cursor Bot commented Mar 10, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions

Copy link
Copy Markdown

Preview Deployment

Status ✅ Running
Live Preview https://Demonstrandum-tensorbored-pr-68.hf.space
Space https://huggingface.co/spaces/Demonstrandum/tensorbored-pr-68
Details
  • Wheel: tensorbored_nightly-2.21.0a20260310-py3-none-any.whl
  • Commit: 5e86bab
  • Build status: success

@Demonstrandum Demonstrandum marked this pull request as ready for review March 11, 2026 12:40
@cursor

cursor Bot commented Mar 11, 2026

Copy link
Copy Markdown

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on April 9.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@Demonstrandum Demonstrandum merged commit 71b5507 into master Mar 11, 2026
13 checks passed
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.

4 participants