dabla commented on code in PR #74536:
URL: https://github.com/apache/airflow/pull/74536#discussion_r4758742613


##########
devel-common/src/sphinx_exts/airflow_spelling.py:
##########
@@ -175,7 +175,7 @@ def _describe(node: nodes.Text, text: str, word: str, 
offset: int) -> dict[str,
 
 
 def _start(app: Sphinx) -> None:
-    if app.config.airflow_spelling_output:
+    if app.builder.name == "html" and app.config.airflow_spelling_output:

Review Comment:
   **[nit]** The builder check works, but no test covers it.
   
   `test_airflow_spelling.py` exists next to this module. A test that calls 
`_start` with a builder named `llms-markdown` and `airflow_spelling_output` 
set, and asserts that no run is attached to the app, would keep the check from 
being dropped later. If it went, the Markdown build would silently go back to a 
second spell check of every page.



##########
providers/common/ai/docs/durable_execution.rst:
##########
@@ -27,13 +27,27 @@ twice. With durable execution, each step the agent 
completes is recorded in a jo
 kept for the task instance, and the retry replays the recorded steps instead 
of running
 them again. Only the steps the failed attempt never finished run live.
 
+<<<<<<< HEAD

Review Comment:
   **[blocker]** The rebase left Git conflict markers in this page, and the 
docs build publishes them.
   
   Commit 95af1d76fa ("Improve LLM documentation build diagnostics and tests") 
contains `<<<<<<< HEAD`, `=======` and `>>>>>>> 8c19ab81a5`, with both versions 
of the paragraph between them. RST raises no warning for these lines, so the 
build passes and the published page shows:
   
   - the markers, as plain text;
   - `main`'s paragraph ("On Airflow 3.3 and later, ``AgentOperator`` and 
``@task.agent`` do this by default …") and the old one ("Durable execution only 
helps a task that has retries …") one after the other;
   - an empty "Turn it on" section just before "When it is on".
   
   The `.. meta::` description from the older side also contradicts the page as 
it is on `main`. It says "Set durable=True on an agent task", while durable 
execution is now on by default. `llms.txt` uses that description as the summary 
of the page.
   
   Suggested resolution: keep `main`'s paragraph, drop the old paragraph and 
the "Turn it on" heading, and keep the `.. meta::` block with a description 
that matches the default, for example:
   
   ```rst
   .. meta::
       :description: On Airflow 3.3 and later, a retried agent task replays the 
model and tool calls the failed attempt already finished instead of running and 
paying for them again.
   ```
   
   `git grep -nE '^(<<<<<<<|=======$|>>>>>>>)'` over the branch would catch any 
other leftovers. I found none in the other files the PR touches.



-- 
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]

Reply via email to