Skip to content

Merge Amber master into texera master - #811

Merged
zuozhiw merged 41 commits into
masterfrom
amber-master
Aug 22, 2020
Merged

zuozhiw merged 41 commits into
masterfrom
amber-master

Conversation

@zuozhiw

@zuozhiw zuozhiw commented Aug 21, 2020

Copy link
Copy Markdown
Contributor

This PR merges the new amber engine code into the master branch.

YinanDanielZhou and others added 30 commits March 3, 2020 19:27
…n to the workflow, todos: improve the UI design, auto complete (Schema propagation)
…). also made the breakpoint button on the link to show when a breakpoint is added to the link.
…n to the workflow, todos: improve the UI design, auto complete (Schema propagation)
…). also made the breakpoint button on the link to show when a breakpoint is added to the link.
… workflow to store breakpoints, also experimenting on jointjs tutorial's way of writing link-tools (for breakpoint) but not looking positive
@zuozhiw
zuozhiw merged commit 3ea4175 into master Aug 22, 2020
@zuozhiw
zuozhiw deleted the amber-master branch August 22, 2020 01:35
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
Merge Amber master into texera master
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 8, 2026
…#8896)

### What changes were proposed in this PR?

Removes three exported REST endpoint constants from
`execute-workflow.service.ts` that nothing imports:
`EXECUTE_WORKFLOW_ENDPOINT`, `PAUSE_WORKFLOW_ENDPOINT` and
`RESUME_WORKFLOW_ENDPOINT`. **−5 lines.** There is no behaviour change.
Execute, pause and resume are sent over the websocket
(`WorkflowExecuteRequest` / `WorkflowPauseRequest` /
`WorkflowResumeRequest`), and the backend has no `queryplan/execute`,
`pause` or `resume` REST routes.

### History

| | |
| --- | --- |
| **Introduced by** | apache#622 (2018-06-21), the first execute-workflow
service: `EXECUTE_WORKFLOW_ENDPOINT`. apache#684 (2019-03-10), pause/resume
buttons: the other two |
| **Usage removed by** | apache#811 (2020-08-21), the Amber merge, which moved
pause/resume to websocket requests and removed their `http.post` calls.
apache#982 (2021-01-25), "Improves multiple ports support in Texera operators
(Step 4)", which removed the last REST execute call |

The pause/resume constants have been unused for six years, and the
execute one for nearly five.

### Any related issues, documentation, discussions?

Closes apache#8895

### How was this PR tested?

No new tests; no spec imported the constants.

From `frontend/`:

- `npx ng test --watch=false`, covering
`execute-workflow.service.spec.ts` plus all 17 specs that import the
service (18 files): 1363 tests pass, 1 is skipped (an existing
`it.skip`).
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -w -E "EXECUTE_WORKFLOW_ENDPOINT|PAUSE_WORKFLOW_ENDPOINT|RESUME_WORKFLOW_ENDPOINT"   # no hits
```

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

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 24, 2026
### What changes were proposed in this PR?

Removes the `AmberConfig` object, whose only member, `masterNodeAddr`,
is written but never read. **+8/−57 lines.** There is no behaviour
change.

- **`AmberConfig.scala`:** deleted.
- **`AmberRuntime.scala`:** the two `AmberConfig.masterNodeAddr =
createMasterAddress(...)` writes in `startActorMaster` /
`startActorWorker`, the private `createMasterAddress` helper that only
fed them, and the `Address` import. The seed nodes, hostname and actor
system the two methods build are unchanged.
- **`ScheduleGenerator.scala`:** a ScalaDoc line cited
`AmberConfig.maxConcurrentRegions`; the value lives in
`ApplicationConfig`.
- **`AmberRuntimeSpec`:** drops the save/restore of the global, the
sentinel, and the one case that only observed `masterNodeAddr`. Every
case covering the surviving `AmberRuntime` behaviour stays.

### History

| | |
| --- | --- |
| **Introduced by** | apache#811 (2020-08-22), "Merge Amber master into texera
master": `masterNodeAddr`, for `ClusterListener` to tell the master node
apart. apache#1439 (2022-02-12) added `createMasterAddress`, and apache#2245
(2023-12-06) moved the field into `AmberConfig` |
| **Usage removed by** | apache#3029 (2024-12-08), "Create a separate web
server for workflow execution". It deleted the last reader,
`member.address != AmberConfig.masterNodeAddr` in `ClusterListener`.
apache#3466 (2025-06-13) then moved every other `AmberConfig` member to
`common/config`, leaving only this field |

It has been write-only for nearly two years.

### Any related issues, documentation, discussions?

Closes apache#9025

### How was this PR tested?

No new tests. `AmberRuntimeSpec` keeps its coverage of the master and
worker startup paths.

Locally, from the repo root with Java 17:

- `sbt "WorkflowExecutionService/Test/compile"
"WorkflowExecutionService/scalafmtCheckAll"
"WorkflowExecutionService/scalafixAll --check"`: success.
- `sbt "WorkflowExecutionService/testOnly *AmberRuntimeSpec
*ComputingUnitMasterSpec *ClusterListenerSpec
*CostBasedScheduleGeneratorSpec"`: 4 suites, 68 tests, all pass.

To re-check:

```
git grep -n -w -e AmberConfig -e masterNodeAddr -e createMasterAddress -- amber   # no hits
```

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

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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