Skip to content

fix: Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164) - #6664

Merged
ntkathole merged 2 commits into
masterfrom
auto-sync/upstream/164
Jul 30, 2026
Merged

fix: Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164)#6664
ntkathole merged 2 commits into
masterfrom
auto-sync/upstream/164

Conversation

@jyejare

@jyejare jyejare commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Auto-sync from opendatahub-io/feast (PR #164)

Cherry-pick of opendatahub-io#164 to upstream master branch.

This PR was automatically created from the midstream repository.

Made with Cursor

@jyejare
jyejare force-pushed the auto-sync/upstream/164 branch from 01e0c70 to d9cb234 Compare July 30, 2026 07:39
@jyejare
jyejare requested a review from a team as a code owner July 30, 2026 07:39
@jyejare jyejare changed the title sync(upstream): fix: Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164) fix: sync(upstream) Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164) Jul 30, 2026
@codecov-commenter

codecov-commenter commented Jul 30, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.36%. Comparing base (0f149a9) to head (bf0a471).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
sdk/python/feast/offline_server.py 92.00% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6664      +/-   ##
==========================================
+ Coverage   46.35%   46.36%   +0.01%     
==========================================
  Files         414      414              
  Lines       50052    50072      +20     
  Branches     7151     7154       +3     
==========================================
+ Hits        23201    23218      +17     
- Misses      25229    25231       +2     
- Partials     1622     1623       +1     
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 47.66% <92.00%> (+0.01%) ⬆️
Files with missing lines Coverage Δ
sdk/python/feast/offline_server.py 29.39% <92.00%> (+0.03%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62db435...bf0a471. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jyejare
jyejare force-pushed the auto-sync/upstream/164 branch from d9cb234 to cb02a08 Compare July 30, 2026 07:51
@ntkathole ntkathole changed the title fix: sync(upstream) Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164) fix: Set FIPS cipher suites before pyarrow.flight import to prevent crash on IBM Power (#164) Jul 30, 2026
aipcc-bot added 2 commits July 30, 2026 14:06
…rash on IBM Power

RHOAIENG-78595

# What this PR does / why we need it:

The Feast offline container crashes in CrashLoopBackOff on FIPS-enabled
OpenShift clusters running IBM Power (ppc64le). The existing FIPS cipher
suite fix (RHOAIENG-70153) set GRPC_SSL_CIPHER_SUITES in `start_server()`,
but pyarrow.flight was already imported at module level. On IBM Power, gRPC
reads this env var during shared-library initialization, so the late
configuration had no effect.

This fix moves the FIPS cipher configuration to module level — before the
pyarrow.flight import — so the env var is present when gRPC initializes its
SSL context. The `_configure_grpc_fips()` call in `start_server()` is
retained as a safety net.

# Which issue(s) this PR fixes:

Fixes RHOAIENG-78595

# Checks
- [x] I've made sure the tests are passing.
- [x] My PR title follows conventional commits format

## Testing Strategy
- [x] Unit tests

Assisted-by: Claude claude-opus-4-6 <noreply@anthropic.com>
Signed-off-by: aipcc-bot <aipcc-bot@redhat.com>
Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com>
# What this PR does / why we need it:
Move FIPS log message below logger initialization so it is emitted at INFO
level instead of being silently dropped under the default WARNING threshold.
Replace importlib.reload-based import ordering test with a subprocess-based
test that exercises fresh Python import from scratch, ensuring
pyarrow.flight is not cached in sys.modules and the GRPC_SSL_CIPHER_SUITES
ordering check is genuine.

# Which issue(s) this PR fixes:
Fixes RHOAIENG-78595

# Checks
- [x] I've made sure the tests are passing.
- [x] My PR title follows conventional commits format

## Testing Strategy
- [x] Unit tests

Assisted-by: Claude claude-opus-4-6 <noreply@anthropic.com>
Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com>
@ntkathole
ntkathole force-pushed the auto-sync/upstream/164 branch from cb02a08 to bf0a471 Compare July 30, 2026 08:36
@ntkathole
ntkathole merged commit 4a35fba into master Jul 30, 2026
18 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants