The GitHub Actions job "Build and push images" on texera.git/main has failed.
Run started by GitHub user bobbai00 (triggered by bobbai00).

Head commit for run:
29e254010546b25dbac703ef59e2f1a2546772f4 / Prateek Ganigi 
<[email protected]>
fix(workflow-operator): retry other providers on a 401 instead of aborting the 
HF fallback (#7242)

### What changes were proposed in this PR?

In the HuggingFace operator's `_post_with_fallback`, a 401 from any
single provider immediately aborted the whole fallback chain (reported
as "Invalid HF API token"), even when another provider would have served
the model with the same token, one provider can 401 (e.g. missing
provider-specific permission) while others accept the token.

This removes the 401 short-circuit and adds 401 to the `RETRYABLE` set,
so the loop tries the remaining providers. "Invalid HF API token" is now
surfaced only when the final provider still returns 401 (i.e. every
provider rejected the token).

### Any related issues, documentation, discussions?

Closes #7194.

### How was this PR tested?

`sbt "WorkflowOperator/testOnly
org.apache.texera.amber.operator.huggingFace.*
org.apache.texera.amber.util.PythonCodeRawInvalidTextSpec"`: passes (125
tests). Added a test asserting 401 is retryable and the old
short-circuit is gone; `PythonCodeRawInvalidTextSpec` py-compiles the
generated Python. scalafmt clean.

### Was this PR authored or co-authored using generative AI tooling?

No, this PR was not authored or co-authored using generative AI tooling.

Report URL: https://github.com/apache/texera/actions/runs/30873542207

With regards,
GitHub Actions via GitBox

Reply via email to