Skip to content
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

Status not reporting or updating correctly on PR #3378

Closed
WillsonHG opened this issue Nov 24, 2021 · 15 comments
Closed

Status not reporting or updating correctly on PR #3378

WillsonHG opened this issue Nov 24, 2021 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@WillsonHG
Copy link
Member

open-telemetry/opentelemetry-dotnet#2677

The user's EasyCLA comment status is showing
image

This has a mixed message that 1) the user isn't authorized but 2) the copy tells them they are missing id on commit.

The second issue is that the bot posted twice instead of editing the original comment

The third issue is that the status did not update to 'authorized' once the user authorized themselves, only the 'checks' section was updated.

@WillsonHG WillsonHG added the bug Something isn't working label Nov 24, 2021
@ktmitton
Copy link

I ended up resolving it by changing the email address (even on the commit), and doing a merge of recent changes from main. Not exactly sure which thing triggered the fix to work, that's just what changed between it failing and passing.

Let me know if there's anything else I can help with!

@WillsonHG
Copy link
Member Author

prestodb/presto#17055 another example @dealako Need to check the response when a user has a missing ID on commit, the cla bot is not showing correct messaging.

@WillsonHG
Copy link
Member Author

@WillsonHG
Copy link
Member Author

grpc/grpc#28307

@WillsonHG
Copy link
Member Author

kubernetes/website#30830

@WillsonHG
Copy link
Member Author

Hi @dealako any updates for this?

@WillsonHG
Copy link
Member Author

@WillsonHG
Copy link
Member Author

appium/appium#16312

@WillsonHG
Copy link
Member Author

@dealako
Copy link
Member

dealako commented Feb 9, 2022

Created PR: #3418. Let's QA this set of changes:

  • Updated filter to identify missing IDs from the commit list
  • Updated logic that checks for previous missing IDs
  • Added logic to stop processing GitHub PR when the repository is disabled

@thakurveerendras
Copy link
Contributor

thakurveerendras commented Feb 10, 2022

Hello @dealako

Issue is tested on dev site & found that all the three scenario mentioned are fixed as expected

### **Updated filter to identify missing IDs from the commit list**

Setup :

  1. Add non existing email address under the system .getconfig file
  2. Provide admin access at GitHub repo to test user say : thakurveerendras1
  3. Get “Personal access tokens” for test user "Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information."
  4. Git Clone repository on local machine

Setup on PCC :

  1. Add EasyCLA group
  2. Configure GitHub EasyCLA App
  3. CLA enforced GitHub repo

Steps :

  1. Make changes on local repository say update README.md
  2. Git Push changes on branch
a.      git checkout -b <branchName>
b.	git add .
c.	git status
d.	git commit -m “commit text”
e.	git push origin <branchName>
i.	add test user name : thakurveerendras1
ii.	add token key : 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
f.	Copy pull request url from cmd : https://github.com/VeerNoGithubIDOrgTest/repo02/pull/new/testbranch5
  1. Past PR url & create pull request
    Results Obtains: PR is gated & “MISSING ID ON COMMIT” appears
    image.png

• ### Updated logic that checks for previous missing IDs

Steps :

  1. Make changes on local repository say update README.md
  2. Git Push changes on same branch above
a.	git checkout -b <branchName>
b.	git add .
c.	git status
d.	git commit -m “commit text”
e.	git push origin -f <branchName>
i.	add test user name : thakurveerendras1
ii.	add token key : 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
f.	Copy pull request url from cmd : https://github.com/VeerNoGithubIDOrgTest/repo02/pull/new/testbranch5
  1. Past PR url & create pull request
    Result : “New changes since you last viewed” appears
    image.png

• ### Added logic to stop processing GitHub PR when the repository is disabled

Steps :

  1. On PCC disable cla enforced for repos
  2. Make changes on local repository say update README.md
  3. Git Push changes on same branch
a.	git checkout -b <branchName>
b.	git add .
c.	git status
d.	git commit -m “commit text”
e.	git push origin -f <branchName>
i.	add test user name : thakurveerendras1
ii.	add token key : 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
f.	Copy pull request url from cmd : https://github.com/VeerNoGithubIDOrgTest/repo02/pull/new/testbranch5
  1. Past PR url & create pull request
    ### Result Obtains : EasyCLA not process as expected.

@thakurveerendras
Copy link
Contributor

"Missing ID on Commit " PR is not authorized when user successfully signing DocuSign as ICLA

Issue is tested on Dev site

Refer video clip :
https://images.zenhubusercontent.com/194341141/7be2249e-f984-4dd2-ac8d-6cadd36399ca/3378.mp4

@dealako
Copy link
Member

dealako commented Feb 16, 2022

This should be resolved now. Ready for QA.

@thakurveerendras
Copy link
Contributor

Hello @dealako ,
Failed case in issue is tested on dev site & found that GitHub status is now passing as expected

Refer video clip for more details :
https://images.zenhubusercontent.com/194341141/bb3ec548-27ba-4058-9f0c-efe38d2377cf/3378__1_.mp4

@dealako
Copy link
Member

dealako commented Feb 17, 2022

Resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants