Skip to content

Feature/edl lambda token#4337

Merged
jamesfwood merged 4 commits intomainfrom
feature/edl_lambda_token
Mar 12, 2026
Merged

Feature/edl lambda token#4337
jamesfwood merged 4 commits intomainfrom
feature/edl_lambda_token

Conversation

@sliu008
Copy link
Collaborator

@sliu008 sliu008 commented Mar 11, 2026

This pull request introduces a major update to how bearer tokens are handled and acquired for regression and verification workflows. The new approach replaces direct environment variable-based token retrieval with a configurable token provider mechanism, allowing tokens to be fetched either directly from the EDL API or via an AWS Lambda function. Additionally, the pull request improves GitHub issue labeling for regression failures, and adds checks to prevent duplicate pull requests in CI workflows.

Token acquisition and provider configuration:

  • Introduced a new token_utils.py module with functions for fetching bearer tokens either directly or via AWS Lambda, and updated all relevant scripts to use this mechanism (tests/token_utils.py, tests/aggregate_results.py, tests/verify_collection.py). [1] [2] [3]
  • Added a --token-provider CLI option to pytest and updated workflow files to use and propagate this option, enabling selection between "direct" and "lambda" token sources (tests/conftest.py, .github/workflows/process_chunk.yml, .github/workflows/new_regression.yml, .github/workflows/verify.yml). [1] [2] [3] [4] [5]

CI/CD workflow improvements:

  • Updated GitHub Actions workflows to configure AWS credentials for Lambda token provider, removed legacy environment-based token setting, and ensured proper environment variables are set for token acquisition (.github/workflows/new_regression.yml, .github/workflows/process_chunk.yml). [1] [2] [3]
  • Added steps to check for existing pull requests before creating new ones and before enabling automerge, preventing duplicate PRs in the diff workflow (.github/workflows/diff.yml). [1] [2] [3] [4]

Regression failure labeling and issue management:

  • Improved regression failure handling by extracting error-specific labels from failed test messages and applying them to GitHub issues, including updating existing issues with new labels (tests/aggregate_results.py). [1] [2] [3] [4] [5]

These changes collectively modernize token management for regression testing, streamline CI workflows, and enhance failure reporting and triage.

@sliu008 sliu008 requested a review from jamesfwood March 11, 2026 17:46
@tloubrieu-jpl tloubrieu-jpl moved this to needs:triage in podaac Mar 11, 2026
@github-actions
Copy link
Contributor

Test Results for

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 214da1f.

@jamesfwood jamesfwood merged commit 3c27486 into main Mar 12, 2026
4 of 5 checks passed
@jamesfwood jamesfwood deleted the feature/edl_lambda_token branch March 12, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: needs:triage

Development

Successfully merging this pull request may close these issues.

2 participants