Repository navigation
ci: drop the triage label, use is:open no:assignee filter - #4899
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4899 +/- ##
============================================
+ Coverage 42.04% 42.99% +0.95%
- Complexity 2155 2219 +64
============================================
Files 980 1011 +31
Lines 36292 40546 +4254
Branches 3783 4684 +901
============================================
+ Hits 15260 17434 +2174
- Misses 20108 21844 +1736
- Partials 924 1268 +344
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
88107b6 to
67cabba
Compare
a4427d2 to
94407d8
Compare
triage label, use is:open no:assignee filter
`triage` is a derived state — an issue needs triage iff it has no assignee. Materializing it as a label means every assignee mutation needs to keep the label in sync, which is fragile (GITHUB_TOKEN-authored mutations don't trigger event-driven reconcilers, third-party bots bypass them, etc.). Drop the label entirely; reviewers use the search filter `is:issue is:open no:assignee` instead. Behavior is preserved by existing pieces in `pr-assignment.yml`: - PR opened/edited with closing reference -> opener auto-assigned to each linked issue (issue leaves the no-assignee filter). - PR closed without merge -> opener unassigned (issue returns to the filter unless someone else is still on it). - PR merged -> credit-on-merge step overwrites assignees with the actual commit authors. Pre-merge assignments are tentative. `/take` and `/untake` commands move to a new `take-commands.yml` — trimmed of the old triage-label management. Anyone can self-claim or self-release an issue via comment. Removed: - `.github/workflows/issue-triage.yml` (the triage-label state machine). Issue templates still attach `labels: ["triage"]`; that line is left to a separate change so it can be backported independently. Until the templates are also updated, newly opened issues will continue to acquire the label until that follow-up lands and the label itself is deleted from the repo.
94407d8 to
54cd795
Compare
|
The current workflow uses addAssignees, which is additive. Two questions just to clarify if this is the intent:
If (1) is changed to first-come-first-served, (2) becomes moot. Otherwise (2) is worth fixing on its own. |
Definitely not get rejected. we usually have the case where Alice gets assigned but backeloged, thus Bob wants to take over. So we will allow bob to /take. But I think they can both get assigned, just to keep track, we can read from comment history to know the order, if needed. Note that before a PR is merged, these assignments are temporary.
I think that rarely rarely happens. It only exist in odds. I've never seen an issue has 10 assignees, ever. we don't need to over engineer this... Plus, a committer can always manually change the assignees, without this automation system. |
### What changes were proposed in this PR?
`triage` is a derived state (issue needs triage iff it has no assignee).
Materializing it as a label means every assignee mutation has to keep
the label in sync, which is fragile across `GITHUB_TOKEN`-authored
writes, third-party bots, and dropped webhooks. Drop the label;
reviewers use the search filter `is:issue is:open no:assignee` instead.
- Delete `.github/workflows/issue-triage.yml` (the entire triage-label
state machine).
- Add `.github/workflows/take-commands.yml`: handles `/take`
(self-assign) and `/untake` (self-unassign) on issues.
- Update one stale comment in `pr-assignment.yml` that referenced the
removed workflow.
`labels: ["triage"]` is left in `bug-template.yaml`,
`task-template.yaml`, `feature-template.yaml` so that change can be
backported on its own. Until that follow-up lands and the label itself
is deleted from the repo, newly opened issues will continue to acquire
the label.
### Simplified issue lifecycle
The new model is "assignee = ownership; no assignee = needs triage". One
filter and three transition rules — no reified state.
```
open issue, no assignee
(visible in `is:open no:assignee` triage filter)
│
┌──────────────────────┼──────────────────────┐
│ │ │
/take comment PR opened with (no action)
on the issue `Closes #N` stays in filter
│ │
v v
assignee = commenter assignee = PR opener
(out of filter) (out of filter — tentative)
│ │
│ ┌───────┴────────┐
│ │ │
/untake PR closed PR merged
comment unmerged
│ │ │
v v v
removes self opener credit-on-merge:
(back in unassigned assignees overwritten
filter only (back in with PR opener +
if no other filter unless commit authors.
assignees) others stay) Final attribution.
```
#### Stacked claims
`/take` uses GitHub's `addAssignees`, which is append-semantics —
existing assignees are not replaced. So if Alice has already taken an
issue and goes inactive, Bob commenting `/take` produces a co-assignment
rather than a rejection. Comment history records the order. `/untake`
only removes the commenter from the assignee list, leaving anyone else
in place. At merge time the credit step overwrites the whole list with
the actual contributors, so stacked claims are explicitly tentative.
Behavior preserved by `pr-assignment.yml` (already on main):
- PR opened/edited with `Closes #N` → opener is auto-assigned to each
linked issue (issue leaves the no-assignee filter).
- PR closed without merge → opener is unassigned.
- PR merged → the credit-on-merge step overwrites assignees with the
actual commit authors. **Pre-merge assignments are tentative.**
### Any related issues, documentation, discussions?
Closes #4898.
After merge, the `triage` label can be deleted from the repo as a
one-shot cleanup (`gh api -X DELETE
/repos/apache/texera/labels/triage`); that drops the chip from every
existing issue at once. Any saved searches / project-board automation
keyed on `label:triage` should be moved to `no:assignee`.
The follow-up to drop `labels: ["triage"]` from the three issue
templates is a separate change so it can be backported independently.
### How was this PR tested?
Static checks: YAML parse on both workflow files. Behavior verifiable
post-merge: opening a PR with `Closes #N` should remove `#N` from the
`is:open no:assignee` filter; closing the PR unmerged should put it
back; commenting `/take` / `/untake` should toggle the assignee. Two
users commenting `/take` in sequence should produce a stacked
co-assignment.
### Was this PR authored or co-authored using generative AI tooling?
(backported from commit 07d8311)
Generated-by: Claude Opus 4.7 (1M context)
|
Backport to |
### What changes were proposed in this PR? Follow-up to PR #4899, which retired the `triage` label workflow in favor of the search filter `is:issue is:open no:assignee`. The three issue templates still carried `labels: ["triage"]` at the top, so every new issue opened via the templates re-acquired the label even though no workflow consumes it anymore. Drop the line in `bug-template.yaml`, `task-template.yaml`, and `feature-template.yaml` (one line each). ### Any related issues, documentation, discussions? Closes #4917. Sequel to #4899. After this lands, the `triage` label itself can be deleted from the repo: ``` gh api -X DELETE /repos/apache/texera/labels/triage ``` That removes the chip from every issue that still carries it. ### How was this PR tested? YAML parse on all three templates. Behavior verifiable post-merge by opening a new issue from any template and confirming no `triage` label is attached. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.7 (1M context)
…#4899) ### What changes were proposed in this PR? `triage` is a derived state (issue needs triage iff it has no assignee). Materializing it as a label means every assignee mutation has to keep the label in sync, which is fragile across `GITHUB_TOKEN`-authored writes, third-party bots, and dropped webhooks. Drop the label; reviewers use the search filter `is:issue is:open no:assignee` instead. - Delete `.github/workflows/issue-triage.yml` (the entire triage-label state machine). - Add `.github/workflows/take-commands.yml`: handles `/take` (self-assign) and `/untake` (self-unassign) on issues. - Update one stale comment in `pr-assignment.yml` that referenced the removed workflow. `labels: ["triage"]` is left in `bug-template.yaml`, `task-template.yaml`, `feature-template.yaml` so that change can be backported on its own. Until that follow-up lands and the label itself is deleted from the repo, newly opened issues will continue to acquire the label. ### Simplified issue lifecycle The new model is "assignee = ownership; no assignee = needs triage". One filter and three transition rules — no reified state. ``` open issue, no assignee (visible in `is:open no:assignee` triage filter) │ ┌──────────────────────┼──────────────────────┐ │ │ │ /take comment PR opened with (no action) on the issue `Closes #N` stays in filter │ │ v v assignee = commenter assignee = PR opener (out of filter) (out of filter — tentative) │ │ │ ┌───────┴────────┐ │ │ │ /untake PR closed PR merged comment unmerged │ │ │ v v v removes self opener credit-on-merge: (back in unassigned assignees overwritten filter only (back in with PR opener + if no other filter unless commit authors. assignees) others stay) Final attribution. ``` #### Stacked claims `/take` uses GitHub's `addAssignees`, which is append-semantics — existing assignees are not replaced. So if Alice has already taken an issue and goes inactive, Bob commenting `/take` produces a co-assignment rather than a rejection. Comment history records the order. `/untake` only removes the commenter from the assignee list, leaving anyone else in place. At merge time the credit step overwrites the whole list with the actual contributors, so stacked claims are explicitly tentative. Behavior preserved by `pr-assignment.yml` (already on main): - PR opened/edited with `Closes #N` → opener is auto-assigned to each linked issue (issue leaves the no-assignee filter). - PR closed without merge → opener is unassigned. - PR merged → the credit-on-merge step overwrites assignees with the actual commit authors. **Pre-merge assignments are tentative.** ### Any related issues, documentation, discussions? Closes apache#4898. After merge, the `triage` label can be deleted from the repo as a one-shot cleanup (`gh api -X DELETE /repos/apache/texera/labels/triage`); that drops the chip from every existing issue at once. Any saved searches / project-board automation keyed on `label:triage` should be moved to `no:assignee`. The follow-up to drop `labels: ["triage"]` from the three issue templates is a separate change so it can be backported independently. ### How was this PR tested? Static checks: YAML parse on both workflow files. Behavior verifiable post-merge: opening a PR with `Closes #N` should remove `#N` from the `is:open no:assignee` filter; closing the PR unmerged should put it back; commenting `/take` / `/untake` should toggle the assignee. Two users commenting `/take` in sequence should produce a stacked co-assignment. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.7 (1M context)
### What changes were proposed in this PR? Follow-up to PR apache#4899, which retired the `triage` label workflow in favor of the search filter `is:issue is:open no:assignee`. The three issue templates still carried `labels: ["triage"]` at the top, so every new issue opened via the templates re-acquired the label even though no workflow consumes it anymore. Drop the line in `bug-template.yaml`, `task-template.yaml`, and `feature-template.yaml` (one line each). ### Any related issues, documentation, discussions? Closes apache#4917. Sequel to apache#4899. After this lands, the `triage` label itself can be deleted from the repo: ``` gh api -X DELETE /repos/apache/texera/labels/triage ``` That removes the chip from every issue that still carries it. ### How was this PR tested? YAML parse on all three templates. Behavior verifiable post-merge by opening a new issue from any template and confirming no `triage` label is attached. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.7 (1M context)
) ### What changes were proposed in this PR? Remove unused imports, bindings, helpers and fields, 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 (**+102/-172 lines**). There is no behavior change. - **Amber Python runtime:** `StatisticsManager` uses `defaultdict` instead of the deprecated `typing.DefaultDict`, and `BroadcastPartitioner` builds its batch with `[]`. `LargeBinaryOutputStream` raises and documents `OSError` (which `IOError` aliases), wraps its best-effort cleanup delete in `contextlib.suppress`, and drops the `pass` after `flush`'s docstring. - **Operator verification test resources:** `py_op_driver.py` drops ten `pytexera` imports and `RAW_TYPE_MAPPING` that it never reads. User code runs in its own namespace seeded by `from pytexera import *`, so the "used dynamically" note on those imports did not hold. `compare.py` drops the uncalled `_string_columns` helper and two dict copies of `double_kinds_a`/`double_kinds_e`, and `hf_parse_probe.py` drops unused `io` and `re` imports. Quoted annotations, `open(..., "r")`, `startswith` plus a slice, and a placeholder-free f-string take their plain forms here and in `standalone_worker.py`, `py_compile_worker.py` and `hf_binary_value_probe.py`. - **`bin/` scripts:** the licensing tools use a tuple `startswith`, read the one regex group they need instead of unpacking all four, print plain strings where f-strings had no placeholders, return a `bool` expression directly, drop annotation quotes under `from __future__ import annotations`, use `removesuffix`, and name unused loop values `_`. Two licensing tests drop `# noqa: E402` comments that suppress nothing under Ruff, and `test_local_dev_tui.py` drops the never-passed `version` parameter of `_seed_jvm_layout` together with the docstring sentence about a jar it never wrote. `bin/observability/smoke_test.py` stops returning an unread status from `_post`, builds the trace id from one `uuid4().hex` (the first 32 hex digits of two concatenated ones were always the first), and drops a `leaked = False` that both branches of the following `try` overwrite. - **Repository configuration:** `amber/pyproject.toml` drops `line-length = 88` and `max-complexity = 10`, which are Ruff's defaults (and `C901` is not selected). `.dockerignore` drops a root `user-resources/` entry that its first rule, `**/user-resources/`, already covers. `bin/fix-format.sh` drops the `""` case that `TARGET="${1:-all}"` makes unreachable, and `bin/frontend-proto-gen.sh` drops a `--proto_path` that repeats its `-I`. `bin/k8s/templates/aws/.gitkeep` goes, since the folder holds `s3-credentials-secret.yaml`. `bin/y-websocket-server/package.json` drops npm-init's `main` and placeholder `test` script (the image runs `npx y-websocket`), and a `bin/observability/docker-compose.yml` comment stops pointing at a `start_app.sh` that the repository does not have. - **GitHub workflows:** `comment-commands.yml` drops `github.event_name == 'issue_comment' && github.event.action == 'created'` from three job conditions, because the workflow only runs on `issue_comment: [created]`. `pr-assignment.yml` drops a `|| ''` that follows a `typeof ... === 'string'` guard. `benchmarks-pr-comment.yml` stops storing per-benchmark commit and date, a sample count and delta labels that nothing reads, takes each row's status from the deltas it already computed instead of a second `deltaInfo` pass, reuses each metric's 7-day delta, and builds the PR-only CSV table only when there is no comparison to show. | Event | PR / Commit | | --- | --- | | Introduced by | Amber Python runtime: apache#1891 (2023-05-01), apache#3262 (2025-02-18), apache#4100 (2025-12-15), apache#4707 (2026-05-03), apache#5249 (2026-06-06), apache#8260 (2026-11-18); test resources: apache#7207 (2026-08-14), apache#8617 (2026-10-15), apache#9306 (2026-11-10), apache#8357 (2026-11-17), apache#8358 (2026-11-18), apache#8359 (2026-11-19); `bin/` scripts: apache#4387 (2026-04-29), apache#4668 (2026-05-02), apache#4693 (2026-05-02), apache#4711 (2026-05-03), apache#5057 (2026-05-15), apache#5417 (2026-06-10), apache#5961 (2026-06-28), apache#5377 (2026-10-28); configuration: apache#3019 (2024-11-20), apache#3335 (2025-03-23), apache#3441 (2025-05-19), apache#3890 (2025-10-14), apache#4005 (2025-10-29), apache#4105 (2025-12-05), apache#5757 (2026-06-24); workflows: apache#4885 (2026-05-03), apache#4986 (2026-05-08), apache#5148 (2026-05-22), apache#5557 (2026-06-11), apache#5639 (2026-06-12) | | Usage removed by | `issue_comment` checks: apache#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, and apache#4986 and apache#5148 copied the checks into two new jobs; `aws/.gitkeep`: apache#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: apache#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 | As of 2026-11-23, the unread test-resource code is under a week old, the `.gitkeep` placeholder and the unread benchmark fields have been redundant for about 5 months, the `issue_comment` checks for over 6 months, and the duplicate `.dockerignore` entry and `--proto_path` for 20 and 24 months. ### Any related issues, documentation, discussions? Closes apache#9676. ### How was this PR tested? Ran on `525f8ce3fb` and on `main` at `89a492f97e` (Windows 11, Python 3.12 with CI's pinned `ruff` 0.14.7, `pytest` 9.0.3 and `textual` 8.2.8, JDK 17): ```bash cd amber ruff check src/main/python src/test/python ruff format --check src/main/python src/test/python pytest -m "not integration" cd .. ruff check $(git diff --name-only origin/main -- '*.py' ':!amber/') python -m pytest bin/ -v --tb=short sbt "WorkflowCompilingService/testOnly org.apache.texera.amber.translator.verify.ComparatorSpec org.apache.texera.amber.translator.verify.HarnessSpec org.apache.texera.amber.translator.verify.PyOpExecHarnessSpec org.apache.texera.amber.translator.verify.VisualizationJsonComparatorSpec" sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.huggingFace.codegen.HuggingFaceBinaryValueBehaviorSpec org.apache.texera.amber.operator.huggingFace.codegen.HuggingFaceParseBehaviorSpec org.apache.texera.amber.util.PythonCodeRawInvalidTextSpec" ``` - Ruff: passed on `amber/` (218 files already formatted) and on the 14 changed Python files outside `amber/`. - `pytest -m "not integration"` in `amber/` (JUnit XML): each of the 1,524 tests has the same outcome as on `main`: 1,496 passed, 10 skipped, and the same 18 platform-dependent tests (Iceberg catalog on PostgreSQL and `s3fs`, time zones, object reprs) fail on this Windows machine on both. - `python -m pytest bin/` (JUnit XML): each of the 196 tests has the same outcome as on `main`: 186 passed, and nine `bin/mounter` tests plus `test_stamp_dir_for_matches_shell_sha1`, which assume POSIX paths and shells, fail on Windows on both. - sbt (JUnit XML, `UDF_PYTHON_PATH` set to Python 3.12 because Windows has no `python3`): these seven suites load the edited test resources. `WorkflowCompilingService` passed 52 of 52 in 4 suites and `WorkflowOperator` 11 of 11 in 3 suites, with 0 canceled, the same as on `main`. - Licensing scripts: `concat_license_binary.py` writes byte-identical combined licenses for the Python and frontend images, and `check_binary_deps.py jar` prints byte-identical reports and exit codes for a synthetic lib folder with missing, extra and version-mismatched jars, with and without `--ignore-transitive-version`. - Workflows: the three edited workflows run only from the default branch (`issue_comment`, `pull_request_target` and `workflow_run`), so this PR's CI cannot run them. Each edited `github-script` body ran before and after under Node with recording stubs for `github`, `core`, `fs` and `fetch`, over 496 fixtures (missing or malformed CSV and baseline data, failed API calls, body edits with and without closing references). Every API call, comment body and log line is identical, and a one-line change to each script does show up in its traces. The `comment-commands.yml` conditions differ from `main` only by the two removed checks. - `bash -n` passes on `bin/fix-format.sh` and `bin/frontend-proto-gen.sh`, and the edited YAML, TOML and JSON files parse. - After review, `f84888ca6c` changes only three docstrings in `large_binary_output_stream.py` and inlines one local in `py_op_driver.py`. On it, Ruff passes as above, each of the 1,524 `amber` tests again has the same outcome as on `main`, the four `WorkflowCompilingService` suites pass 52 of 52, and `_jsonify` returns the same strings as on `525f8ce3fb` for seven `BINARY` inputs, with and without the pickle marker. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
What changes were proposed in this PR?
triageis a derived state (issue needs triage iff it has no assignee). Materializing it as a label means every assignee mutation has to keep the label in sync, which is fragile acrossGITHUB_TOKEN-authored writes, third-party bots, and dropped webhooks. Drop the label; reviewers use the search filteris:issue is:open no:assigneeinstead..github/workflows/issue-triage.yml(the entire triage-label state machine)..github/workflows/take-commands.yml: handles/take(self-assign) and/untake(self-unassign) on issues.pr-assignment.ymlthat referenced the removed workflow.labels: ["triage"]is left inbug-template.yaml,task-template.yaml,feature-template.yamlso that change can be backported on its own. Until that follow-up lands and the label itself is deleted from the repo, newly opened issues will continue to acquire the label.Simplified issue lifecycle
The new model is "assignee = ownership; no assignee = needs triage". One filter and three transition rules — no reified state.
Stacked claims
/takeuses GitHub'saddAssignees, which is append-semantics — existing assignees are not replaced. So if Alice has already taken an issue and goes inactive, Bob commenting/takeproduces a co-assignment rather than a rejection. Comment history records the order./untakeonly removes the commenter from the assignee list, leaving anyone else in place. At merge time the credit step overwrites the whole list with the actual contributors, so stacked claims are explicitly tentative.Behavior preserved by
pr-assignment.yml(already on main):Closes #N→ opener is auto-assigned to each linked issue (issue leaves the no-assignee filter).Any related issues, documentation, discussions?
Closes #4898.
After merge, the
triagelabel can be deleted from the repo as a one-shot cleanup (gh api -X DELETE /repos/apache/texera/labels/triage); that drops the chip from every existing issue at once. Any saved searches / project-board automation keyed onlabel:triageshould be moved tono:assignee.The follow-up to drop
labels: ["triage"]from the three issue templates is a separate change so it can be backported independently.How was this PR tested?
Static checks: YAML parse on both workflow files. Behavior verifiable post-merge: opening a PR with
Closes #Nshould remove#Nfrom theis:open no:assigneefilter; closing the PR unmerged should put it back; commenting/take//untakeshould toggle the assignee. Two users commenting/takein sequence should produce a stacked co-assignment.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7 (1M context)