-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing AWS CI flow #16
Comments
@saravan2 @davide125 : I don't have admin permission to add secrets to github CI. I would need that to test, so add me if it is worth for me to have admin power. |
I've just added the secrets on our end. |
Perfect. Thanks |
Merged and kicked off a run: https://github.com/facebookexperimental/resctl-demo/actions/runs/5257716435 |
@davide125 Deployment seems successful but we also need to test that lamda as per task. I feel this need to be done on your side. Let me know if I need to be part of this. |
Step 3 : New PR in https://github.com/facebookexperimental/resctl-demo/ to add IAM Is that necessary ? |
The IAM stuff should be all set up now. I don't actually know how to test the lambda though... |
@davide125 @saravan2 Lambda workflow: Testing steps:
Note: The aws endpoints are hardcoded in lambda code so if aws endpoints differs then we need to update code. ping me for that. |
@davide125 has offered to test this this week |
Need to talk to Davide again about this |
We can't use personal tokens for this. Can we update the lambda to use OIDC instead? |
@davide125 : I am looking on that how OIDC should be configured in AWS and hopefully will get it done soon. |
Continuing work on this to figure out OIDC |
@davide125 : After reading AWS OIDC docs, I'm bit confused with how OIDC authentication should be used in our case. |
The problem is on the Github side and avoiding using a personal token. I don't see OIDC listed in the Github docs, just for Github Apps - I'm not sure what @davide125 was referring to. It seems the App token is what we'd want - https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28 |
Yeah app tokens should work for this. Thanks! |
You should be able to setup a GitHub App that uses oauth from looking at
the docs. That should be workable for us.
…On Wed, Nov 15, 2023, 2:21 PM Davide Cavalca ***@***.***> wrote:
Yeah app tokens should work for this. Thanks!
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQXC3JHLVTRTPMZM5MG46LYEUI2LAVCNFSM6AAAAAAYYX2BW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGEZDANZXGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@davide125 @htejun Once merged we can test the lambda flow as mentioned in #16 (comment) but Instead of storing person token in AWS system manager we can store following github app (iocost-issue-creator) information as : Name: /iocost-bot/appid |
@santoshmahto7 can you add me/this org to the github app please? I can't find it, and I think I need access to the app page to pull the appid/privatekey to store on the AWS side. Thanks! |
This is failing with an exception on the lambda side when uploading: |
I will take a look if this is any configuration error. |
|
I fixed one issue with github app authentication since it was moved to organisation You are running the command correctly but you can also verify following point as:
|
Bucket name is wrong, put up facebookexperimental/resctl-demo#317 to fix it |
Ok upload works with that applied but the URL in the issue is wrong: iocost-benchmark/iocost-benchmarks#88 |
Fix for that should be facebookexperimental/resctl-demo#318 |
Also merged #20 as that code was still referencing invalid buckets |
The action that was supposed to rebuild iocost-benchmarks-ci got disabled due to lack of activity, manually enabled it and re-ran it to get a new build with #20 in |
@davide125 Do you have any updates about this? |
Looks like the merge CI is broken because the resctl-demo artifacts expired: https://github.com/iocost-benchmark/iocost-benchmarks/actions/runs/10067289408/job/27830450070 |
I've reenabled the scheduled jobs (and assed a job to make sure they don't expire) and rebuilt the demo artifacts at https://github.com/iocost-benchmark/iocost-benchmarks-ci/actions/runs/10071274177 |
The merge job is getting further, but still failing due to installation of dependency problems: https://github.com/iocost-benchmark/iocost-benchmarks/actions/runs/10071298822/job/27841230084 I think it makes sense to have a separate scheduled CI test to test the merge CI. I'll open a separate ticket about that. |
I fixed the workflow in iocost-benchmark/iocost-benchmarks#90 there are still issues with the workflow (captured in separate tickets), but I think this unblocks the bucket testing for this ticket? Can you please look again? |
OK the lambda function is currently But submitting a result ends up with an The (limited) log snippet from AWS include:
The Lambda function should be updated to not ... just panic ... but instead throw the error back to the user :-) |
After :
We need to start testing AWS CI workflow
The text was updated successfully, but these errors were encountered: