aglinxinyuan opened a new issue, #9676:
URL: https://github.com/apache/texera/issues/9676

   ### Task Summary
   Remove unused code, and settings that repeat a default or another entry, 
from the Amber Python runtime, the Python test resources of the workflow 
compiler and operators, the `bin/` licensing, local-dev and observability 
scripts, repository configuration, and three GitHub workflows, without changing 
behavior:
   
   - Amber Python runtime: use `defaultdict` instead of the deprecated 
`typing.DefaultDict` in `StatisticsManager` and `[]` instead of `list()` in 
`BroadcastPartitioner`. In `LargeBinaryOutputStream`, raise `OSError` (which 
`IOError` aliases), wrap the best-effort cleanup delete in 
`contextlib.suppress`, and drop the `pass` after `flush`'s docstring.
   - Operator verification test resources: drop ten `pytexera` imports and 
`RAW_TYPE_MAPPING` that `py_op_driver.py` never reads (user code runs in its 
own namespace seeded by `from pytexera import *`), the uncalled 
`_string_columns` helper and two dict copies in `compare.py`, and the unused 
`io` and `re` imports in `hf_parse_probe.py`. Write quoted annotations, 
`open(..., "r")`, `startswith` plus a slice, and a placeholder-free f-string in 
their plain forms.
   - `bin/` scripts: simplify `check_binary_deps.py`, 
`concat_license_binary.py`, `audit_jar_licenses.py` and 
`generate_notice_binary.py` (tuple `startswith`, one regex group instead of an 
unpacked match, plain strings for placeholder-free f-strings, a direct `bool` 
return, unquoted annotations under `from __future__ import annotations`, 
`removesuffix`, `_` for unused loop names). Drop two `# noqa: E402` comments 
that suppress nothing under Ruff and the never-passed `version` parameter of 
`_seed_jvm_layout` in `test_local_dev_tui.py`. In 
`bin/observability/smoke_test.py`, stop returning an unread status from 
`_post`, build the trace id from one `uuid4().hex`, and drop a `leaked = False` 
that both branches of the following `try` overwrite.
   - Repository configuration: drop `line-length = 88` and `max-complexity = 
10` (Ruff's defaults) from `amber/pyproject.toml`, the root `user-resources/` 
entry that `**/user-resources/` already covers in `.dockerignore`, the `""` 
case that `TARGET="${1:-all}"` makes unreachable in `bin/fix-format.sh`, the 
`--proto_path` that repeats `-I` in `bin/frontend-proto-gen.sh`, 
`bin/k8s/templates/aws/.gitkeep` now that the folder holds a template, 
npm-init's `main` and placeholder `test` script in 
`bin/y-websocket-server/package.json` (the image runs `npx y-websocket`), and a 
`bin/observability/docker-compose.yml` comment that points at a `start_app.sh` 
the repository does not have.
   - Workflows: drop the `github.event_name == 'issue_comment' && 
github.event.action == 'created'` checks from three job conditions in 
`comment-commands.yml` (the workflow only runs on created comments) and a `|| 
''` after a `typeof ... === 'string'` guard in `pr-assignment.yml`. In 
`benchmarks-pr-comment.yml`, drop the per-benchmark commit and date, the sample 
count, the delta labels and a second status pass that nothing reads, and build 
the PR-only CSV table only when there is no comparison to show.
   
   **Introduced by:**
   - Amber Python runtime: #1891 (2023-05-01), #3262 (2025-02-18), #4100 
(2025-12-15), #4707 (2026-05-03), #5249 (2026-06-06), and #8260 (2026-11-18).
   - Test resources: #7207 (2026-08-14), #8617 (2026-10-15), #9306 
(2026-11-10), #8357 (2026-11-17), #8358 (2026-11-18), and #8359 (2026-11-19).
   - `bin/` scripts: #4387 (2026-04-29), #4668 (2026-05-02), #4693 
(2026-05-02), #4711 (2026-05-03), #5057 (2026-05-15), #5417 (2026-06-10), #5961 
(2026-06-28), and #5377 (2026-10-28).
   - Configuration: #3019 (2024-11-20), #3335 (2025-03-23), #3441 (2025-05-19), 
#3890 (2025-10-14), #4005 (2025-10-29), #4105 (2025-12-05), and #5757 
(2026-06-24).
   - Workflows: #4885 (2026-05-03), #4986 (2026-05-08), #5148 (2026-05-22), 
#5557 (2026-06-11), and #5639 (2026-06-12).
   
   **Usage removed by:**
   - `issue_comment` checks: #4899 (2026-05-04, `ci: drop the triage label, use 
is:open no:assignee filter`) moved `/take` out of `issue-triage.yml`, which 
also ran on `issues` events, into a workflow that only runs on created 
comments; #4986 and #5148 copied the checks into two new jobs.
   - `aws/.gitkeep`: #5932 (2026-07-01, `feat(k8s): make app-tier object 
storage configurable via storage.s3`) added the folder's first template.
   - PR-only CSV table: #5639 (2026-06-12, `ci: compare benchmark PRs with 
main`) shows it only when there is no comparison.
   - Everything else: unused or redundant since introduction.
   
   This is a pure cleanup with no behavior change.
   
   ### Task Type
   - [x] Refactor / Cleanup
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] Remove unused code ... aglinxinyuan (via GitHub) via notifications

Reply via email to