Skip to content

feat: auto-load staging secrets from .env and fix DS_PASSWORD plumbing#1481

Open
tychtjan wants to merge 3 commits intomasterfrom
JTYC-STAGING-CHANGES
Open

feat: auto-load staging secrets from .env and fix DS_PASSWORD plumbing#1481
tychtjan wants to merge 3 commits intomasterfrom
JTYC-STAGING-CHANGES

Conversation

@tychtjan
Copy link
Contributor

@tychtjan tychtjan commented Mar 24, 2026

Summary

  • .env auto-loading: Staging make targets now read STAGING_ADMIN_TOKEN and STAGING_DS_PASSWORD from .env via Make's -include
  • DS_PASSWORD plumbing: Fixed the full chain — Makefile → project_common.mktox.iniconftest.pyupload_demo_layout.py
  • Runtime credentials patching: _patch_ds_credentials fixture overrides demo-test-ds password in memory instead of rewriting the YAML file
  • Conftest __func__ fix: staticmethod access changed for Python 3.10+ compatibility (no more __func__ attribute)
  • VCR matcher relaxation: Removed scheme, host, port from cassette matching so cassettes recorded on either local or staging work in CI
  • Organization assertion relaxation: _default_organization_check now asserts fields are populated rather than matching exact config values, enabling dual-environment cassette support
  • Cassette regeneration: All gooddata-sdk cassettes re-recorded against staging
  • API client regeneration: Updated gooddata-api-client and OpenAPI schemas

jira: DX-341
risk: low

@tychtjan tychtjan force-pushed the JTYC-STAGING-CHANGES branch 6 times, most recently from 5af9c61 to 54ecbf5 Compare March 25, 2026 10:29
Also fix __func__ attribute error on staticmethod in conftest for Python 3.10+,
relax VCR matchers to support both local and staging cassettes, and relax
organization assertions for dual-environment cassette support.
@tychtjan tychtjan force-pushed the JTYC-STAGING-CHANGES branch from 54ecbf5 to 538a05e Compare March 25, 2026 10:44
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.31%. Comparing base (f4d3399) to head (538a05e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1481   +/-   ##
=======================================
  Coverage   77.31%   77.31%           
=======================================
  Files         227      227           
  Lines       14761    14761           
=======================================
  Hits        11413    11413           
  Misses       3348     3348           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants