Skip to content

Add API key creation for CI tests#5570

Open
jyotshnayaparla-00 wants to merge 2 commits intomainfrom
add-api-key-ci
Open

Add API key creation for CI tests#5570
jyotshnayaparla-00 wants to merge 2 commits intomainfrom
add-api-key-ci

Conversation

@jyotshnayaparla-00
Copy link
Contributor

Adds SDK method to create API keys and wires CI workflow to generate and export FELDERA_API_KEY before test.bash.

@jyotshnayaparla-00 jyotshnayaparla-00 self-assigned this Feb 5, 2026
Copy link
Contributor

@gz gz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but probably better if @abhizer reviews this so we'll defer to him

make sure to add a test to the python sdk itself to test this method @abhizer can you walk @jyotshnayaparla-00 through the steps to do that?

for ow you can run the Merge Queue Job on this branch manually to see if it would pass

@gz
Copy link
Contributor

gz commented Feb 5, 2026

also can you squash the commits into a single one on that branch?

working-directory: python
env:
FELDERA_HOST: http://localhost:8080
PYTHONPATH: ${{ github.workspace }}/python
Copy link
Contributor

@gz gz Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OIDC_TEST_CLIENT_SECRET: ${{ secrets.OIDC_TEST_CLIENT_SECRET }}
          OIDC_TEST_USERNAME: ${{ secrets.OIDC_TEST_USERNAME }}
          OIDC_TEST_PASSWORD: ${{ secrets.OIDC_TEST_PASSWORD }}

you might have to set those here too (from above) @abhizer can say this for sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update done: added SDK test, squashed into one commit, and added OIDC env vars. Ready for @abhizer review.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great note that you won't be able to push merge commits into main (the CI won't allow you to merge).. instead of merging main into my branch i just set up an alias git purr in my gitconfig that I use to rebase my branches onlatest main

here is my alias list for ~/.gitconfig maybe you find some of them useful

[alias]
    br = branch --sort=-committerdate
    cm = commit -s -S
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    purr = pull --rebase
    st = status -sb
    co = checkout
    so = commit --amend -s -c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto latest main and force‑pushed (a40c4f09223811). No merge commits in the branch now.

gz

This comment was marked as duplicate.

@jyotshnayaparla-00 jyotshnayaparla-00 force-pushed the add-api-key-ci branch 2 times, most recently from a40c4f0 to 9223811 Compare February 6, 2026 00:32
@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 6, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 6, 2026
@jyotshnayaparla-00
Copy link
Contributor Author

Fixed the CI failure by forcing shell: bash for the API key creation step. Rebased and pushed (f810d90).

@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 6, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 6, 2026
@jyotshnayaparla-00
Copy link
Contributor Author

The CI API key creation now uses OIDC token when configured (avoids 401 “API key not set”).

@gz
Copy link
Contributor

gz commented Feb 6, 2026

@jyotshnayaparla-00 can you squash all commits into just 2

  • one "[python] add create api key to sdk"
  • one "[ci] run fda tests"
    before merging? We try to keep the commit history clean.

(git rebase -i should work)

@gz gz added this pull request to the merge queue Feb 7, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 8, 2026
@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 9, 2026
@jyotshnayaparla-00 jyotshnayaparla-00 removed this pull request from the merge queue due to a manual request Feb 9, 2026
@jyotshnayaparla-00
Copy link
Contributor Author

Updated the Create API key step to use an OIDC token when configured and pushed to add-api-key-ci.

@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 9, 2026
@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 10, 2026
@jyotshnayaparla-00 jyotshnayaparla-00 added this pull request to the merge queue Feb 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 10, 2026
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.

3 participants