Skip to content

ci: Restore AWS credentials after DynamoDB versioning tests - #7140

Open
franciscojavierarceo wants to merge 1 commit into
masterfrom
ci/restore-aws-credentials
Open

franciscojavierarceo wants to merge 1 commit into
masterfrom
ci/restore-aws-credentials

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Member

Master's Python 3.11 and 3.12 integration jobs fail in Redshift and DynamoDB tests with invalid AWS credentials even though the workflow's initial STS authentication succeeds. The moto-backed DynamoDB versioning fixture assigns dummy credentials directly to os.environ, leaving them in the pytest worker after the mock ends.

Use pytest's monkeypatch fixture for all five AWS environment overrides so teardown restores the original credentials and region, including when a test fails. No tests are skipped and no runtime store behavior changes.

Validation:

  • Reproduced the contamination before the change: all six versioning tests pass, then a same-process environment-preservation check fails.
  • After the change, all six versioning tests plus environment and existing boto3-session preservation checks pass (8 total). This local run uses the real moto mock and omits unrelated integration conftests with --noconftest.
  • Scoped Ruff lint, formatting, and git diff --check pass.
  • Full authenticated cloud integration remains to be verified in CI.

Failing master run: https://github.com/feast-dev/feast/actions/runs/43198360331

The separate unit workflow failure is a macOS ARM runner-acquisition failure; the other five unit jobs pass. That job was retried separately.

@codecov-commenter

codecov-commenter commented Nov 12, 2026 •

Copy link
Copy Markdown

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

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.29%. Comparing base (e81e69d) to head (3c418c4).
❗ 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    #7140   +/-   ##
=======================================
  Coverage   52.29%   52.29%           
=======================================
  Files         459      459           
  Lines       58090    58090           
  Branches     8560     8560           
=======================================
  Hits        30381    30381           
  Misses      25629    25629           
  Partials     2080     2080           
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 53.82% <ø> (ø)

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 e81e69d...3c418c4. 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.

This branch has not been deployed

No deployments
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