You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/06/25 07:41:00 UTC

[PR] Harden two timing-sensitive special-test failures on slow CI runners [airflow]

potiuk opened a new pull request, #68968:
URL: https://github.com/apache/airflow/pull/68968

   Both failures came from one **Pendulum2 special-test** run (`Tests (AMD)`, v3-3-test). That job runs in a freshly rebuilt env, so the Python bytecode cache is cold and first imports are slow. The job passes normally — these are timing flakes, not regressions — so this just makes the two tests tolerant of slow/cold runners.
   
   **`test_cli_run_time`** asserted the best of **3** `airflow --help` startup samples was under a tight **5s** bound; on the loaded/cold runner the whole-provider-load startup consistently sat just over (min 5.49s). Now takes the min of **5** samples and uses a looser **8s** threshold — still catches gross startup regressions, no longer flakes on small fluctuations.
   
   **`TestProviderManager`** builds the full `ProvidersManager`, importing every provider hook. The first such import in the process pays a one-time cold-import cost — notably `tableauserverclient`, which self-instruments via `beartype.claw` on first import (**~50s locally**) — which can exceed the default **60s** per-test execution timeout (it timed out at 60s here). Added a class-level `@pytest.mark.execution_timeout(180)`; the tests are sub-second once imports are cached.
   
   Test-only; verified both pass locally (provider-manager test paid the real ~50s cold import and passed under the 180s marker).
   
   > Should be backported to `v3-3-test` (where it surfaced).
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Make test_cli_run_time tolerant of slow/cold CI runners [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #68968:
URL: https://github.com/apache/airflow/pull/68968#issuecomment-4812493775

   ### Backport successfully created: v3-3-test
   
   Note: As of [Merging PRs targeted for Airflow 3.X](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#merging-prs-targeted-for-airflow-3x)
   the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.
   
   In matter of doubt please ask in [#release-management](https://apache-airflow.slack.com/archives/C03G9H97MM2) Slack channel.
   
   <table>
           <tr>
           <th>Status</th>
           <th>Branch</th>
           <th>Result</th>
       </tr>
       <tr>
           <td>✅</td>
           <td>v3-3-test</td>
           <td><a href="https://github.com/apache/airflow/pull/69053"><img src="https://img.shields.io/badge/PR-69053-blue" alt="PR Link"></a></td>
       </tr>
   </table>


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Make test_cli_run_time tolerant of slow/cold CI runners [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #68968:
URL: https://github.com/apache/airflow/pull/68968#issuecomment-4812490853

   Hi maintainer, this PR was merged without a milestone set.
   We've automatically set the milestone to **[Airflow 3.3.1](https://github.com/apache/airflow/milestone/146)** based on: backport label targeting v3-3-test
   If this milestone is not correct, please update it to the appropriate milestone.
   
   > This comment was generated by [Milestone Tag Assistant](https://github.com/apache/airflow/blob/main/.github/workflows/milestone-tag-assistant.yml).
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Make test_cli_run_time tolerant of slow/cold CI runners [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #68968:
URL: https://github.com/apache/airflow/pull/68968


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org