You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villebro (via GitHub)" <gi...@apache.org> on 2026/09/01 16:21:39 UTC
[PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
villebro opened a new pull request, #43768:
URL: https://github.com/apache/superset/pull/43768
### SUMMARY
Review-driven hardening of the GAQ→GTF epic, folded back onto `gaq-to-gtf`. This
branch implements fixes for **12 findings** surfaced by a fresh end-to-end review
(five parallel subsystem passes: coordination/locks, GTF task lifecycle, async
chart-data, realtime/websocket, frontend) plus an independent external review. Each
finding was verified against the code before fixing; every fix ships with tests.
Both reviews independently concluded there is **no in-scope security boundary
violation** (per `SECURITY.md`): the model remains "an authorized route creates a
task, the worker runs as the initiating principal, and task/list/result state is
fetched through protected APIs; websocket messages are nudges or targeted terminal
status, not authority."
#### Fixes (grouped by severity)
**HIGH**
- **Async worker rebuilt `g.form_data` with the wrong shape.** The worker set
`g.form_data` to the top-level slice form-data (no `queries`), but
`get_form_data()`'s no-request-context fallback and the Jinja macros
(`filter_values`/`get_filters`/`url_param`) read query-level filters from
`form_data["queries"][0]`. For a templated dataset this rendered empty filters in
the worker, so it cached the wrong SQL under a `query_cache_key` that **diverged
from the submit-time `task_key`** → a reschedule loop. Now the worker reconstructs
a body-shaped `g.form_data` via the canonical
`set_query_context_form_data(query_context, …)`. (Regressed the fix claimed in
step #43701; the previous test masked it with a body-shaped dict `serialize_query`
never emits — replaced with a real round-trip assertion.)
- **Concurrent forced refresh re-ran synchronously on a web worker.** The force
idempotency marker was keyed by a **client-minted** random nonce, so a second
concurrent forced refresh (new nonce) joined the shared task, then forced its own
synchronous read-back and recomputed the query in-process. The nonce is now the
**task's own UUID** — server-assigned, already returned in the 202 `task_ids`. The
worker stamps each query with its task UUID and records the marker; the client
threads each query's task id (index-aligned) as its per-query `force_nonce` on the
synchronous read-back. Because the token is the task's identity, a concurrent
refresh joining the same SHARED task reads back under the same id and does not
re-execute. Drops client-side `nanoid` and the submit-path nonce threading.
**Important**
- **Cleanup-handler failure could flip a committed `SUCCESS` → `FAILURE`.** Cleanup
runs in the executor's `finally`, *after* the `SUCCESS` commit; the write used
`UpdateTaskCommand.set_status` with no compare-and-swap. It now routes through a
conditional `InternalStatusTransitionCommand` (no-op on a terminal task) and, when
the task already succeeded, records the cleanup-failure detail via a
properties-only update — preserving `SUCCESS`.
- **Timeout/self-fence gated on a stale session-bound entity.** `_abort_locally`
read `self._task.properties_dict` (a construction-time snapshot) from a background
timer/fence thread; `is_abortable` is written to the in-memory `_properties_cache`
during execution. It could skip the abort (stranding the task `IN_PROGRESS`) or
trigger a cross-thread session reload. Now gates on `_properties_cache`.
- **Terminal `FAILURE` wiped the whole properties column.** `conditional_status_update`
replaces the JSON column, and the failure callers passed only `{error_message}`,
dropping runtime fields and the structured `error_update(ex)` debug detail
(exception class + traceback). Failure writes now merge the executor's property
cache with `error_update(ex)` via a new pure `merge_properties` helper (also used
by `Task.update_properties`, DRY).
- **GAQ could be enabled without GTF via dynamic flag callbacks.** The "GAQ implies
GTF" auto-enable only mutated the static flag map at `init_app`; an
`IS_FEATURE_ENABLED_FUNC`/`GET_FEATURE_FLAGS_FUNC` could resolve GAQ=on/GTF=off, so
`.schedule()` raised instead of degrading. The rule is now enforced at
flag-resolution time, covering the callback paths.
**Medium**
- **DAG dependencies were ignored on the sync/inline path.** `_execute_inline` ran
immediately regardless of `depends_on`; only the Celery path enforced the gate. The
pure DAG *decision* (`unmet_prerequisite`) and *fail action* are extracted into a
shared `superset/tasks/dependencies.py` that both paths call — fully DRY; only the
*wait* action differs (async defers via `self.retry`; sync blocks on the existing
`TaskManager.wait_for_completion`).
- **Websocket-enabled-but-unreachable hung charts for the full give-up window.** With
`WEBSOCKET_ENABLE` on, the socket is the sole completion transport and a
deployed-but-down server left charts spinning ~10 min. The socket is now
self-healing and observable: exponential backoff + jitter with a cap (was a fixed
5s loop), a reconnect-attempt counter, and a new connection-state signal
(`connecting`/`open`/`reconnecting`/`unhealthy`). On each `reconnecting` transition
the client runs the socket-independent `status_changes` catch-up (so a completion
during an outage is still observed); on `unhealthy` it settles pending waiters with
a prompt, bounded error. No interval poll is reintroduced. A synchronous
`WebSocket` constructor failure now schedules a reconnect instead of dead-ending.
- **Coordination listener/waiter resilience + KV lock-release atomicity.** (a) The
baseline `stream_last_id` capture is guarded so a transient backend error at
startup degrades to reading from `0-0` instead of killing the daemon / aborting a
lock acquisition. (b) A transient `check()`/`on_signal()` error inside the listen
loop retries with backoff instead of permanently terminating the one-shot listener
(which would drop the awaited cancel/abort signal). (c) The KV distributed-lock
release row-locks the entry (`SELECT … FOR UPDATE`) so the ownership check and
delete are atomic against a concurrent expire+re-acquire — the KV equivalent of the
Redis compare-and-delete.
**Low (hygiene)**
- Typed the task payload / `TaskPayloadPopover` (`Record<string, unknown>`) and the
`TaskList` subscriber predicate (`TaskSubscriber`) — removing the last `any`s in
the touched task-UI files.
- Added a `CheckConstraint` enforcing the "exactly one of `user_id` / `guest_key`"
invariant on `task_subscribers` (in the branch's own migration + the model
`__table_args__`).
#### Deliberately deferred (both LOW; riskier/heavier than their value)
- Switching the `entity.changed` nudge id from the integer PK to the task UUID — it
is cross-cutting to the entity-agnostic `useListViewResource` hook and the Task API
row key, and the security review classed it a benign metadata side-channel, not an
authorization bypass.
- Making `notify`'s `xadd`+`expire` atomic — requires extending the coordination
backend abstraction (Lua/pipeline); the residual leak is a single MAXLEN-trimmed
stream entry.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — backend correctness/resilience and typing changes, plus a websocket-client
robustness change with no visual surface (a genuinely-down socket now surfaces a
prompt chart error instead of a ~10-minute spinner).
### TESTING INSTRUCTIONS
Automated (all green except one pre-existing, unrelated failure — see below):
```bash
# Backend
pytest tests/unit_tests/tasks/ tests/unit_tests/coordination/ \
tests/unit_tests/distributed_lock/ \
tests/unit_tests/common/test_query_context_processor.py \
tests/unit_tests/common/test_query_serialization.py \
tests/unit_tests/charts/test_chart_data_api.py \
tests/unit_tests/feature_flag_test.py tests/unit_tests/daos/test_tasks.py
# Frontend
npm run test -- src/middleware/realtime.test.ts \
src/middleware/asyncEvent.test.ts src/components/Chart/chartActions.test.ts
```
Manual (end-to-end, with `GLOBAL_ASYNC_QUERIES` on and `DISTRIBUTED_COORDINATION_CONFIG` set):
1. Load a dashboard with a **Jinja-templated dataset** (`{{ filter_values(...) }}` /
`{{ get_filters(...) }}`) under `async_mode`; confirm charts resolve with the
correct filtered SQL and there is **no reschedule loop**.
2. **Double-force** a chart (two quick refreshes): confirm a single warehouse
execution and both refreshes read back from cache.
3. With `WEBSOCKET_ENABLE` on, **stop the websocket server** while a chart is loading:
confirm it surfaces a prompt error rather than a ~10-minute hang; restart the
server and confirm reconnect + reconcile.
4. Cancel/timeout a running async chart on a cancellable engine (e.g. Postgres) and
confirm the terminal task still carries the structured error detail.
> **Pre-existing failure (not from this branch):**
> `tests/unit_tests/tasks/test_deletion_retention.py::test_default_celery_config_registers_daily_purge`
> fails on this branch **with these changes stashed** — it depends on a local
> `superset_config.CeleryConfig` override, unrelated to this work.
> **CI note:** the frontend type-check may fail locally on a **stale, gitignored**
> `packages/superset-ui-core/lib/**/TableCollection/index.d.ts` (predates the branch's
> `TableCollection` prop additions — same class as the Butterfly `TS6305` errors). The
> source type-checks clean; a `npm run plugins:build` refreshes the artifact. oxlint /
> oxfmt / backend hooks pass.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [x] Required feature flags: `GLOBAL_ASYNC_QUERIES` (auto-enables `GLOBAL_TASK_FRAMEWORK`); optional `WEBSOCKET_ENABLE` for realtime transport
- [x] Changes UI (task payload/subscriber typing; websocket-client behavior — a down socket surfaces an error instead of spinning)
- [x] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
- [x] Migration is atomic, supports rollback & is backwards-compatible — adds a `CheckConstraint` to the branch's existing (unreleased) `task_subscribers` migration; downgrade drops it
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497647863
Thanks for the review — addressed in c1d1dac8eb.
**P2 (task-body failure + cleanup failure erasing the original error) — fixed.** Root cause was exactly as you described: `error_properties()` built the merged terminal-error blob but never updated `TaskContext._properties_cache`, and the DAO writes a *complete* properties column ("caller manages merging in their cache"), so the cleanup-failure fallback rewrote a blob from the stale cache. Fix keeps the cache authoritative:
- `error_properties()` now writes the merged result back to `_properties_cache`, so it reflects what the caller commits.
- `_write_handler_failures_to_db` reads the original error from that cache (not the stale `self._task` snapshot), and the terminal-status-preserving fallback records **only** the handler detail under distinct `private.framework.cleanup_*` keys — so the body error's `error_message`/`exception_type`/`stack_trace` survive.
- Added a regression test (`test_cleanup_failure_after_body_failure_preserves_original_error`) for the exact body-then-cleanup sequence.
**Follow-up: `WEBSOCKET_ENABLE` sufficient without a usable URL** — addressed, since it directly undermines the new bounded-wait guarantee. `wsEnabled` now requires `WEBSOCKET_URL` too: without a URL a socket can never open (so no `unhealthy` ever fires and waiters would hang), so polling stays on as the safe fallback. Test added. (The `typeof WebSocket === 'undefined'` SSR/test case is left as-is.)
**Follow-up: inline DAG wait not bounded by `TaskOptions.timeout`** — kept as a roadmap item per your note; the unbounded wait is intentional (it mirrors the async path's unbounded defer-retry — wait until the prerequisite is terminal). Added a code comment documenting that and the potential future bound.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497055256
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 00dfc2d7e77d81c0b244b9485f66e43f1e14df9f |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6a96fb9312fd960009e9535d |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-43768--superset-docs-preview.netlify.app](https://deploy-preview-43768--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
|<span aria-hidden="true">🤖</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#q1YqKMrPLShRslJS0lFKKkrMS84AstMTC3VL8nXTS9J0i1LLMlPLddMyK1KLgUpSUgty8is9U4CKzBItzdKSLI0NjdJSLM0MDAwsUy1NjU1TlGoB) |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-43768--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497020998
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #43768:
URL: https://github.com/apache/superset/pull/43768#discussion_r3906193377
##########
superset/tasks/decorators.py:
##########
@@ -427,6 +429,132 @@ def _wait_for_existing_task(self, task: "Task", timeout: int | None) -> "Task":
refreshed = TaskDAO.find_one_or_none(uuid=task.uuid, skip_base_filter=True)
return refreshed if refreshed else task
+ def _gate_on_prerequisites(self, task: "Task") -> "Task | None":
+ """Block the inline caller until this task's prerequisites are terminal.
+
+ Same ``all_success`` DAG semantics as the async path (shared via
+ :mod:`superset.tasks.dependencies`): ready → returns ``None`` (proceed); a
+ prerequisite still running → block on the coordination completion signal
+ (the sync analogue of the async defer — the caller *is* the executor and
+ has no worker slot to free), then re-check; a prerequisite that ended
+ non-success → fail this dependent and return its terminal ``Task`` for the
+ caller to return.
+ """
+ from flask import current_app
+
+ from superset.daos.tasks import TaskDAO
+ from superset.tasks.dependencies import (
+ DAG_WAITING,
+ fail_dependent_on_unmet_prerequisite,
+ unmet_prerequisite,
+ )
+
+ try:
+ app = current_app._get_current_object() # noqa: SLF001
+ except RuntimeError:
+ app = None
+
+ # Re-read fresh so ``depends_on`` reflects committed edges (the just-created
+ # task's selectin collection can be stale), matching the async path's fresh
+ # worker load.
+ current = (
+ TaskDAO.find_one_or_none(uuid=task.uuid, skip_base_filter=True) or task
+ )
+ unmet = unmet_prerequisite(current)
+ while unmet is DAG_WAITING:
+ for prerequisite in current.depends_on:
+ if prerequisite.status not in TERMINAL_STATES:
+ TaskManager.wait_for_completion(
+ task_uuid=prerequisite.uuid, poll_interval=1.0, app=app
+ )
+ current = (
Review Comment:
**Suggestion:** If one prerequisite has already failed while another remains running, this loop waits for the running task instead of failing the dependent immediately. [incorrect condition logic]
**Assessment:** 🟠 `Major` · 🔁 `Occurrence: Sometimes`
[](https://docs.codeant.ai/cli/resolve-pr-comments-skill) [](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=260df4b0642c4cbbae61d9dabab2a684&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=260df4b0642c4cbbae61d9dabab2a684&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset/tasks/decorators.py
**Line:** 465:470
**Comment:**
*Incorrect Condition Logic: If one prerequisite has already failed while another remains running, this loop waits for the running task instead of failing the dependent immediately.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43768&comment_hash=7114d3772d7b23fd6c17f6e10d8b9a14914f84032964548f7e57ac9223ee53d8&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43768&comment_hash=7114d3772d7b23fd6c17f6e10d8b9a14914f84032964548f7e57ac9223ee53d8&reaction=dislike'>👎</a>
##########
superset/tasks/context.py:
##########
@@ -582,22 +610,64 @@ def _write_handler_failures_to_db(self) -> None:
stack_trace = handler_stack_trace
# Update task with combined error info. error_message is public;
- # exception_type/stack_trace go under private["framework"] (merged
- # recursively, so task/other framework handles are preserved).
- UpdateTaskCommand(
- self._task_uuid,
- status=TaskStatus.FAILURE.value,
- properties={
- "error_message": error_msg,
- "private": {
- "framework": {
- "exception_type": exception_type,
- "stack_trace": stack_trace,
- }
+ # exception_type/stack_trace go under private["framework"]. Merge
+ # onto the executor's property cache so the write preserves runtime
+ # state instead of replacing the whole column.
+ failure_props = merge_properties(
+ self._properties_cache,
+ cast(
+ TaskProperties,
+ {
+ "error_message": error_msg,
+ "private": {
+ "framework": {
+ "exception_type": exception_type,
+ "stack_trace": stack_trace,
+ }
+ },
},
- },
- skip_security_check=True,
+ ),
+ )
+ # Conditional transition (like every other executor path): only
+ # flip to FAILURE from a non-terminal state. Cleanup runs in the
+ # executor's ``finally`` — *after* a SUCCESS commit — so an
+ # unconditional write here would rewrite a committed terminal
+ # result and make a waiter discard a valid, successful payload.
+ transitioned = InternalStatusTransitionCommand(
+ task_uuid=self._task_uuid,
+ new_status=TaskStatus.FAILURE,
+ expected_status=[TaskStatus.IN_PROGRESS, TaskStatus.ABORTING],
+ properties=failure_props,
+ set_ended_at=True,
).run()
+ if not transitioned:
+ # Task already reached a terminal state (e.g. SUCCESS committed
+ # before cleanup ran). Preserve that status; record the handler
+ # failure as debug-only detail so it isn't lost.
+ logger.warning(
+ "Handler failure for task %s after it reached a terminal "
+ "state; recording detail without changing status: %s",
+ self._task_uuid,
+ error_msg,
+ )
+ InternalUpdateTaskCommand(
+ task_uuid=self._task_uuid,
+ properties=merge_properties(
Review Comment:
**Suggestion:** The failure transition writes error details without updating `_task` or `_properties_cache`, so cleanup can overwrite the original task exception with only handler-failure details. [stale reference]
**Assessment:** 🟠 `Major` · 🔁 `Occurrence: Sometimes`
[](https://docs.codeant.ai/cli/resolve-pr-comments-skill) [](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=0d457dd7882f467386e83fd2643fbc3b&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=0d457dd7882f467386e83fd2643fbc3b&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset/tasks/context.py
**Line:** 655:655
**Comment:**
*Stale Reference: The failure transition writes error details without updating `_task` or `_properties_cache`, so cleanup can overwrite the original task exception with only handler-failure details.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43768&comment_hash=2b43ce0e22a644509cd03c046718f1ef896f5564afa88ae73cf87d86e0d7f77b&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43768&comment_hash=2b43ce0e22a644509cd03c046718f1ef896f5564afa88ae73cf87d86e0d7f77b&reaction=dislike'>👎</a>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497271219
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/43768?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `38.92216%` with `102 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 66.10%. Comparing base ([`ef14cbc`](https://app.codecov.io/gh/apache/superset/commit/ef14cbc2e807f8ff94c3a9c6418928ed44c98d5c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`00dfc2d`](https://app.codecov.io/gh/apache/superset/commit/00dfc2d7e77d81c0b244b9485f66e43f1e14df9f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
| [Files with missing lines](https://app.codecov.io/gh/apache/superset/pull/43768?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [superset/tasks/decorators.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Ftasks%2Fdecorators.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdGFza3MvZGVjb3JhdG9ycy5weQ==) | 6.66% | [42 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/tasks/dependencies.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Ftasks%2Fdependencies.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdGFza3MvZGVwZW5kZW5jaWVzLnB5) | 38.23% | [20 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/tasks/context.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Ftasks%2Fcontext.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdGFza3MvY29udGV4dC5weQ==) | 22.22% | [14 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/coordination/base.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Fcoordination%2Fbase.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvY29vcmRpbmF0aW9uL2Jhc2UucHk=) | 31.25% | [11 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/utils/feature\_flag\_manager.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Futils%2Ffeature_flag_manager.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdXRpbHMvZmVhdHVyZV9mbGFnX21hbmFnZXIucHk=) | 70.58% | [4 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/tasks/async\_queries.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Ftasks%2Fasync_queries.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdGFza3MvYXN5bmNfcXVlcmllcy5weQ==) | 0.00% | [4 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/tasks/scheduler.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Ftasks%2Fscheduler.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdGFza3Mvc2NoZWR1bGVyLnB5) | 40.00% | [2 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [superset/commands/distributed\_lock/release.py](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&filepath=superset%2Fcommands%2Fdistributed_lock%2Frelease.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvY29tbWFuZHMvZGlzdHJpYnV0ZWRfbG9jay9yZWxlYXNlLnB5) | 66.66% | [1 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/superset/pull/43768?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
> :exclamation: There is a different number of reports uploaded between BASE (ef14cbc) and HEAD (00dfc2d). Click for more details.
>
> <details><summary>HEAD has 3 uploads less than BASE</summary>
>
>| Flag | BASE (ef14cbc) | HEAD (00dfc2d) |
>|------|------|------|
>|python|6|3|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## gaq-to-gtf #43768 +/- ##
===============================================
- Coverage 79.36% 66.10% -13.26%
===============================================
Files 2893 2893
Lines 166893 166770 -123
Branches 38539 38504 -35
===============================================
- Hits 132450 110244 -22206
- Misses 31937 54254 +22317
+ Partials 2506 2272 -234
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [hive](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `37.90% <24.55%> (+0.01%)` | :arrow_up: |
| [mysql](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [postgres](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `39.80% <26.94%> (+0.02%)` | :arrow_up: |
| [python](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.42% <38.92%> (-26.55%)` | :arrow_down: |
| [sqlite](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.28% <38.92%> (+0.05%)` | :arrow_up: |
| [unit](https://app.codecov.io/gh/apache/superset/pull/43768/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/43768?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497741862
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro commented on PR #43768:
URL: https://github.com/apache/superset/pull/43768#issuecomment-5497740103
/review
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(gtf): review-driven correctness & resilience hardening (12 findings) [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro merged PR #43768:
URL: https://github.com/apache/superset/pull/43768
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org