Skip to content

Move all conf files and readers to core/config - #3466

Merged
bobbai00 merged 1 commit into
masterfrom
jiadong-move-confs-to-config
Jun 13, 2025
Merged

bobbai00 merged 1 commit into
masterfrom
jiadong-move-confs-to-config

Conversation

@bobbai00

@bobbai00 bobbai00 commented Jun 11, 2025 •

Copy link
Copy Markdown
Contributor

This is a follow-up PR of #3458.

As titled, this PR moves all the conf files and their readers to the module core/config. Specifically,

  • core/config/src/main/resources: this folder contains all the conf files;
  • core/config/src/main/scala/edu/uci/ics/amber/config: this package contains all the readers of amber-related configs;
  • core/config/src/main/scala/edu/uci/ics/texera/config: this package contains all the readers of texera-micro-service-related configs;

Future PR Plan

  • merge kubernetes.conf with computing-unit.conf
  • separate the amber-related config from application.conf into a separate file, e.g. amber.conf

@bobbai00 bobbai00 self-assigned this Jun 11, 2025
@bobbai00 bobbai00 added config Pull requests that update configuration refactor Refactor the code labels Jun 11, 2025
@bobbai00

Copy link
Copy Markdown
Contributor Author

@aglinxinyuan is the main reviewer.

@shengquan-ni is the secondary reviewer. Please check the amber related changes.

@aglinxinyuan aglinxinyuan 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.

LGTM! This PR is relatively straightforward. Although it touches many files, most of the changes are due to renaming.

@shengquan-ni shengquan-ni 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.

lgtm

@bobbai00
bobbai00 merged commit c9a59f3 into master Jun 13, 2025
@bobbai00
bobbai00 deleted the jiadong-move-confs-to-config branch June 13, 2025 04:47
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
aglinxinyuan added a commit to aglinxinyuan/texera that referenced this pull request Oct 24, 2026
)

### What changes were proposed in this PR?

Removes the UDF Python log settings that nothing reads. **−30 lines.**
There is no behaviour change.

- `udf.conf`: the `python.log.fileHandler` section (`dir`, `level`,
`format` and their `UDF_PYTHON_LOG_FILEHANDLER_*` overrides) and
`python.log.streamHandler.format` (with
`UDF_PYTHON_LOG_STREAMHANDLER_FORMAT`).
- `UdfConfig`: `pythonLogStreamHandlerFormat`,
`pythonLogFileHandlerDir`, `pythonLogFileHandlerLevel`,
`pythonLogFileHandlerFormat`. The vals and the keys go together, because
the vals' eager `getString` would throw once a key is gone.
- `UdfConfigSpec`: the assertions for the removed settings.

`python.log.streamHandler.level` stays. `PythonWorkflowWorker` forwards
it as `loggerLevel`, and CI sets `UDF_PYTHON_LOG_STREAMHANDLER_LEVEL`.

### History

| | |
| --- | --- |
| **Introduced by** | apache#1119 (2021-05-13), "Add simple debug logging to
PythonUDF": the conf keys. apache#3466 (2025-06-12), "Move all conf files and
readers to `core/config`": the `UdfConfig` vals |
| **Usage removed by** | apache#1958 (2023-06-04), "Remove the deprecated
Python UDF V1". It deleted the Java launcher that read these keys and
attached the file handler. The `UdfConfig` vals were **never used** |

The keys have been dead for over three years. The worker installs one
stderr sink at the forwarded level and has never received a format or a
file-handler setting since apache#1958.

### Any related issues, documentation, discussions?

Closes apache#8741

### How was this PR tested?

No new tests. `UdfConfigSpec` keeps its cases for the surviving
settings.

Locally, from the repo root with Java 17:

- `sbt "Config/Test/compile" "WorkflowExecutionService/Test/compile"`:
success.
- `sbt "Config/testOnly *UdfConfigSpec *PythonUtilsSpec"`: 4 tests, all
pass.
- `sbt "Config/scalafmtCheckAll" "Config/scalafixAll --check"
"WorkflowExecutionService/scalafmtCheckAll"
"WorkflowExecutionService/scalafixAll --check"`: clean.

To re-check:

```
git grep -n -E "fileHandler|LOG_FILEHANDLER|STREAMHANDLER_FORMAT|pythonLogStreamHandlerFormat"   # 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

config Pull requests that update configuration refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants