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

Preview Deployer Bug #298

Closed
0x4007 opened this issue Sep 11, 2024 · 16 comments · Fixed by #337
Closed

Preview Deployer Bug #298

0x4007 opened this issue Sep 11, 2024 · 16 comments · Fixed by #337

Comments

@0x4007
Copy link
Member

0x4007 commented Sep 11, 2024

Crazy bug that edited and embedded the preview deploy inside of Knip. We're going to need to make sure it posts to a separate comment in this situation.

Make sure to also auth the bot as our branded, UbiquityOS bot. Or at least the continuous deploys bot. Or ideally perhaps a dedicated one.

Check here.

Unused exports (1)

Filename exports
static/scripts/rewards/cirip/ens-lookup.ts reverseEnsInterface
78aaac65b91a67aa2f8344b31763aaa5d0a18ce7

Originally posted by @github-actions[bot] in #297 (comment)

@hhio618
Copy link
Contributor

hhio618 commented Sep 12, 2024

@0x4007 Would you explain more about this issue? what should be the desired outcome? Is there any way to reproduce this?

@0x4007
Copy link
Member Author

0x4007 commented Sep 12, 2024

@gitcoindev this might be your department since you implemented the KNIP CI and not sure if you implemented the deployer with a sample permit.

@rndquu
Copy link
Member

rndquu commented Oct 11, 2024

@0x4007 Would you explain more about this issue? what should be the desired outcome? Is there any way to reproduce this?

There's the knip-reporter.yml workflow which posts in github PR comments a list of unused dependencies if there are any (knip comment example).

There's also this workflow step which posts a preview deployment URL with a ready to use URL-encoded permit for ease of QAing (example).

The issue is that somehow both the knip reporter and "post preview URL" step posts in a single comment (as shown in the issue description) while the expected behavior is that knip report and preview URL should be posted in separate comments.

@zugdev
Copy link
Contributor

zugdev commented Oct 14, 2024

/start

Copy link
Contributor

ubiquity-os bot commented Oct 14, 2024

Warning! This task was created over 33 days ago. Please confirm that this issue specification is accurate before starting.
Deadline Mon, Oct 14, 11:42 PM UTC
Beneficiary 0xbB689fDAbBfc0ae9102863E011D3f897b079c80F

Tip

  • Use /wallet 0x0000...0000 if you want to update your registered payment wallet address.
  • Be sure to open a draft pull request as soon as possible to communicate updates on your progress.
  • Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.

@rndquu
Copy link
Member

rndquu commented Oct 16, 2024

@gentlementlegen Help, trying to debug why permits are not created.

In cloudflare logs there's this error:

HttpError: This installation has been suspended - https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app

But https://github.com/apps/ubiquity-os seems to be properly installed in https://github.com/ubiquity.

@gentlementlegen
Copy link
Member

@rndquu I do not have any access to this org in terms of settings so I am not sure. If the error is that the installation is suspended it should mean that the installed apps on this repo are either disabled, or the ones they are calling are disabled on the target (sorry cannot see these since I have no access here). @0x4007 which apps are installed and running here? Should be either ubiquity-os or ubiquiy-os-beta

@0x4007
Copy link
Member Author

0x4007 commented Oct 16, 2024

ubiquity-os not dev

image

it is installed in marketplace as well so it should be able to access those plugins without a problem

image

@gentlementlegen
Copy link
Member

@0x4007 On your screenshot it is disabled due to permission requests it seems.

@0x4007
Copy link
Member Author

0x4007 commented Oct 17, 2024

image

It doesn't indicate suspension. Besides that doesn't make sense that GitHub would disable the entire app just because a new permission was requested and a partner didn't get around to approving right away. It still has a ton of other permissions it can operate perfectly fine with.

@gentlementlegen
Copy link
Member

Right I thought the orange dot meant that but it seems it just indicates that it is pending evaluation. If the error that @rndquu points out is correct, something should be disabled, but marketplace seems to have both. I'll open and close again to check logs.

@gentlementlegen
Copy link
Member

@0x4007 Found the error: it is calling ubiquibot repository which indeed won't work.
https://github.com/ubiquity/pay.ubq.fi/blob/development/.github/.ubiquity-os.config.yml#L32

@rndquu
Copy link
Member

rndquu commented Oct 17, 2024

@0x4007 Found the error: it is calling ubiquibot repository which indeed won't work. https://github.com/ubiquity/pay.ubq.fi/blob/development/.github/.ubiquity-os.config.yml#L32

Thank you, I'll try to update the config. There's a separate config for https://github.com/ubiquity/pay.ubq.fi since we were trying how UUSD payouts work out.

So we renamed https://github.com/ubiquibot/conversation-rewards to https://github.com/ubiquity-os-marketplace/text-conversation-rewards/ and the kernel now throws an error when calling the old https://github.com/ubiquibot/conversation-rewards although it redirects to https://github.com/ubiquity-os-marketplace/text-conversation-rewards.

Is there a way to force the kernel to follow redirects on renaming plugin repositories?

@gentlementlegen
Copy link
Member

@rndquu It seems that Octokit doesn't resolve redirects, I might be wrong but so far every time the old path to the repo (e.g. ubiquibot/conversation-rewards) never gets resolved to the new location, and just does not run the workflow. Not sure if there is a setting somewhere for that. Could be for security reasons.

@rndquu rndquu closed this as completed Oct 17, 2024
@rndquu rndquu reopened this Oct 17, 2024
@rndquu rndquu closed this as completed Oct 17, 2024
@rndquu rndquu reopened this Oct 17, 2024
@rndquu rndquu closed this as completed Oct 17, 2024
Copy link
Contributor

ubiquity-os bot commented Oct 17, 2024

 [ 75 UUSD ] 

@zugdev
Contributions Overview
ViewContributionCountReward
IssueTask175
ReviewComment70
Conversation Incentives
CommentFormattingRelevanceReward
Resolves #298
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 2
  wordValue: 0
  result: 0
0.20
As you can see here this works. But I don't know what bot I shou…
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 32
  wordValue: 0
  result: 0
0.30
It isn't apparently :pWill run QA
0
content:
  content:
    p:
      score: 0
      elementCount: 2
  result: 0
regex:
  wordCount: 8
  wordValue: 0
  result: 0
0.10
@0x4007 QA here: https://github.com/zugdev/pay.ubq.fi/pull/1 you…
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 22
  wordValue: 0
  result: 0
0.40
The reason is `knip-reporter.yml` runs faster than `…
2
content:
  content:
    p:
      score: 0
      elementCount: 5
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
  result: 2
regex:
  wordCount: 115
  wordValue: 0
  result: 0
0.90
Am I the one to solve conflict?
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 7
  wordValue: 0
  result: 0
0.10
That's a good question. I chose this approach because we guarant…
5
content:
  content:
    p:
      score: 0
      elementCount: 2
    a:
      score: 5
      elementCount: 1
  result: 5
regex:
  wordCount: 153
  wordValue: 0
  result: 0
0.80

 [ 0.2635 UUSD ] 

@hhio618
Contributions Overview
ViewContributionCountReward
IssueComment10.2635
Conversation Incentives
CommentFormattingRelevanceReward
@0x4007 Would you explain more about this issue? what should be …
1.33
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 21
  wordValue: 0.1
  result: 1.33
0.80.2635

 [ 73.943 UUSD ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueSpecification161.5
IssueComment311.205
ReviewComment21.238
Conversation Incentives
CommentFormattingRelevanceReward
Crazy bug that edited and embedded the preview deploy inside of …
20.5
content:
  content:
    p:
      score: 0
      elementCount: 8
    a:
      score: 5
      elementCount: 3
    h3:
      score: 1
      elementCount: 1
    em:
      score: 0
      elementCount: 1
  result: 16
regex:
  wordCount: 88
  wordValue: 0.1
  result: 4.5
161.5
@gitcoindev this might be your department since you implemented …
1.49
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.71.043
ubiquity-os not dev<img width="1433" alt="image" src="https…
3.11
content:
  content:
    p:
      score: 0
      elementCount: 4
    hr:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 57
  wordValue: 0.1
  result: 3.11
0.92.799
![image](https://github.com/user-attachments/assets/1172ef7f-3de…
7.78
content:
  content:
    p:
      score: 0
      elementCount: 1
    img:
      score: 5
      elementCount: 1
  result: 5
regex:
  wordCount: 50
  wordValue: 0.1
  result: 2.78
0.857.363
Maybe eventually we can auth with a custom app
0.65
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.60.39
github-actions bot is fine to auth with. Is it using your code w…
1.06
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 16
  wordValue: 0.1
  result: 1.06
0.80.848

 [ 100.027 UUSD ] 

@rndquu
Contributions Overview
ViewContributionCountReward
IssueComment334.883
ReviewComment365.144
Conversation Incentives
CommentFormattingRelevanceReward
There's the [knip-reporter.yml](https://github.com/ubiquity/pay.…
29.67
content:
  content:
    p:
      score: 0
      elementCount: 3
    a:
      score: 5
      elementCount: 5
  result: 25
regex:
  wordCount: 92
  wordValue: 0.1
  result: 4.67
0.929.203
@gentlementlegen Help, trying to debug why permits are not creat…
2
content:
  content:
    p:
      score: 0
      elementCount: 3
  result: 0
regex:
  wordCount: 34
  wordValue: 0.1
  result: 2
0.81.6
Thank you, I'll try to update the config. There's a separate con…
4.8
content:
  content:
    p:
      score: 0
      elementCount: 3
  result: 0
regex:
  wordCount: 95
  wordValue: 0.1
  result: 4.8
0.854.08
@zugdev 1. What is the root cause of the issue? [Here](https:/…
34.92
content:
  content:
    p:
      score: 0
      elementCount: 3
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
    a:
      score: 5
      elementCount: 6
  result: 32
regex:
  wordCount: 53
  wordValue: 0.1
  result: 2.92
0.734.044
More questions:1. Why do we even need to modify [knip-reporter…
31.8
content:
  content:
    p:
      score: 0
      elementCount: 4
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
    a:
      score: 5
      elementCount: 5
  result: 27
regex:
  wordCount: 95
  wordValue: 0.1
  result: 4.8
0.830.84
Yes, PR authors are supposed to resolve code conflicts
0.65
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.40.26

 [ 8.948 UUSD ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueComment58.948
Conversation Incentives
CommentFormattingRelevanceReward
@rndquu I do not have any access to this org in terms of setting…
3.88
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 74
  wordValue: 0.1
  result: 3.88
0.83.104
@0x4007 On your screenshot it is disabled due to permission requ…
0.88
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 13
  wordValue: 0.1
  result: 0.88
0.70.616
Right I thought the orange dot meant that but it seems it just i…
2.64
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 47
  wordValue: 0.1
  result: 2.64
0.61.584
@0x4007 Found the error: it is calling `ubiquibot` repos…
1.7
content:
  content:
    p:
      score: 0
      elementCount: 2
  result: 0
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.91.53
@rndquu It seems that Octokit doesn't resolve redirects, I might…
3.02
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 55
  wordValue: 0.1
  result: 3.02
0.72.114

Copy link
Contributor

ubiquity-os bot commented Oct 25, 2024

 [ 75 UUSD ] 

@zugdev
Contributions Overview
ViewContributionCountReward
IssueTask175
ReviewComment70
Conversation Incentives
CommentFormattingRelevanceReward
Resolves #298
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 2
  wordValue: 0
  result: 0
0.30
As you can see here this works. But I don't know what bot I shou…
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 32
  wordValue: 0
  result: 0
0.70
It isn't apparently :pWill run QA
0
content:
  content:
    p:
      score: 0
      elementCount: 2
  result: 0
regex:
  wordCount: 8
  wordValue: 0
  result: 0
0.20
@0x4007 QA here: https://github.com/zugdev/pay.ubq.fi/pull/1 you…
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 22
  wordValue: 0
  result: 0
0.50
The reason is `knip-reporter.yml` runs faster than `…
2
content:
  content:
    p:
      score: 0
      elementCount: 5
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
  result: 2
regex:
  wordCount: 115
  wordValue: 0
  result: 0
0.90
Am I the one to solve conflict?
0
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 7
  wordValue: 0
  result: 0
0.10
That's a good question. I chose this approach because we guarant…
5
content:
  content:
    p:
      score: 0
      elementCount: 2
    a:
      score: 5
      elementCount: 1
  result: 5
regex:
  wordCount: 153
  wordValue: 0
  result: 0
0.80

 [ 0.246875 UUSD ] 

@hhio618
Contributions Overview
ViewContributionCountReward
IssueComment10.246875
Conversation Incentives
CommentFormattingRelevanceReward
@0x4007 Would you explain more about this issue? what should be …
1.33
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 21
  wordValue: 0.1
  result: 1.33
0.750.246875

 [ 73.131 UUSD ] 

@0x4007
Contributions Overview
ViewContributionCountReward
IssueSpecification161.5
IssueComment310.328
ReviewComment21.303
Conversation Incentives
CommentFormattingRelevanceReward
Crazy bug that edited and embedded the preview deploy inside of …
20.5
content:
  content:
    p:
      score: 0
      elementCount: 8
    a:
      score: 5
      elementCount: 3
    h3:
      score: 1
      elementCount: 1
    em:
      score: 0
      elementCount: 1
  result: 16
regex:
  wordCount: 88
  wordValue: 0.1
  result: 4.5
161.5
@gitcoindev this might be your department since you implemented …
1.49
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 24
  wordValue: 0.1
  result: 1.49
0.60.894
ubiquity-os not dev<img width="1433" alt="image" src="https…
3.11
content:
  content:
    p:
      score: 0
      elementCount: 4
    hr:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 57
  wordValue: 0.1
  result: 3.11
0.82.488
![image](https://github.com/user-attachments/assets/1172ef7f-3de…
7.78
content:
  content:
    p:
      score: 0
      elementCount: 1
    img:
      score: 5
      elementCount: 1
  result: 5
regex:
  wordCount: 50
  wordValue: 0.1
  result: 2.78
0.76.946
Maybe eventually we can auth with a custom app
0.65
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.70.455
github-actions bot is fine to auth with. Is it using your code w…
1.06
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 16
  wordValue: 0.1
  result: 1.06
0.80.848

 [ 107.289 UUSD ] 

@rndquu
Contributions Overview
ViewContributionCountReward
IssueComment334.883
ReviewComment472.406
Conversation Incentives
CommentFormattingRelevanceReward
There's the [knip-reporter.yml](https://github.com/ubiquity/pay.…
29.67
content:
  content:
    p:
      score: 0
      elementCount: 3
    a:
      score: 5
      elementCount: 5
  result: 25
regex:
  wordCount: 92
  wordValue: 0.1
  result: 4.67
0.929.203
@gentlementlegen Help, trying to debug why permits are not creat…
2
content:
  content:
    p:
      score: 0
      elementCount: 3
  result: 0
regex:
  wordCount: 34
  wordValue: 0.1
  result: 2
0.81.6
Thank you, I'll try to update the config. There's a separate con…
4.8
content:
  content:
    p:
      score: 0
      elementCount: 3
  result: 0
regex:
  wordCount: 95
  wordValue: 0.1
  result: 4.8
0.854.08
@zugdev 1. What is the root cause of the issue? [Here](https:/…
34.92
content:
  content:
    p:
      score: 0
      elementCount: 3
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
    a:
      score: 5
      elementCount: 6
  result: 32
regex:
  wordCount: 53
  wordValue: 0.1
  result: 2.92
0.934.628
More questions:1. Why do we even need to modify [knip-reporter…
31.8
content:
  content:
    p:
      score: 0
      elementCount: 4
    ol:
      score: 1
      elementCount: 1
    li:
      score: 0.5
      elementCount: 2
    a:
      score: 5
      elementCount: 5
  result: 27
regex:
  wordCount: 95
  wordValue: 0.1
  result: 4.8
0.830.84
Yes, PR authors are supposed to resolve code conflicts
0.65
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 9
  wordValue: 0.1
  result: 0.65
0.30.195
ok, since [this](https://github.com/zugdev/pay.ubq.fi/blob/b0b3c…
7.49
content:
  content:
    p:
      score: 0
      elementCount: 1
    a:
      score: 5
      elementCount: 1
  result: 5
regex:
  wordCount: 44
  wordValue: 0.1
  result: 2.49
0.76.743

 [ 8.948 UUSD ] 

@gentlementlegen
Contributions Overview
ViewContributionCountReward
IssueComment58.948
Conversation Incentives
CommentFormattingRelevanceReward
@rndquu I do not have any access to this org in terms of setting…
3.88
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 74
  wordValue: 0.1
  result: 3.88
0.83.104
@0x4007 On your screenshot it is disabled due to permission requ…
0.88
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 13
  wordValue: 0.1
  result: 0.88
0.70.616
Right I thought the orange dot meant that but it seems it just i…
2.64
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 47
  wordValue: 0.1
  result: 2.64
0.61.584
@0x4007 Found the error: it is calling `ubiquibot` repos…
1.7
content:
  content:
    p:
      score: 0
      elementCount: 2
  result: 0
regex:
  wordCount: 28
  wordValue: 0.1
  result: 1.7
0.91.53
@rndquu It seems that Octokit doesn't resolve redirects, I might…
3.02
content:
  content:
    p:
      score: 0
      elementCount: 1
  result: 0
regex:
  wordCount: 55
  wordValue: 0.1
  result: 3.02
0.72.114

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

Successfully merging a pull request may close this issue.

5 participants