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

Add the uplift repositories to code-review-bot #2004

Open
globau opened this issue Dec 11, 2023 · 14 comments
Open

Add the uplift repositories to code-review-bot #2004

globau opened this issue Dec 11, 2023 · 14 comments
Assignees

Comments

@globau
Copy link

globau commented Dec 11, 2023

Please configure code-review-bot to process revisions from the listed Phabricator repositories below. Each is related to uplifts, and should be handled the same as mozilla-central:

  • mozilla-beta
  • mozilla-release
  • mozilla-esr115

Thanks!

@globau
Copy link
Author

globau commented Dec 12, 2023

@marco-c marco-c self-assigned this Jan 15, 2024
@marco-c
Copy link
Collaborator

marco-c commented Jan 15, 2024

I added Beta, we should confirm it's working and then I will add the others.

@cgsheeh
Copy link
Member

cgsheeh commented Feb 1, 2024

I took a look at some of the beta uplifts and noticed a few things. In some cases like D199896 we see the patch fail to apply as expected, confirmed by attempting to apply the patch manually.

In other cases like D199918 the patch fails to apply because "the parent revision does not exist on mozilla-unified". I'm not sure where the parent revision is being pulled from, but in the case of uplift repositories the patches should always be applied to the latest commit from that branch (ie the beta firefoxtree/bookmark in mozilla-unified). We are setting the sourceControlBaseRevision property on the Phabricator diff to the latest commit from the repository, pulled from the attachments.metrics.recentCommit.identifier property on the Phabricator diffusion.repository.search endpoint response.

@marco-c
Copy link
Collaborator

marco-c commented Feb 2, 2024

We are reading the refs.base.identifier property from the differential.diff.search endpoint response: https://github.com/mozilla/libmozdata/blob/50135a6fb76f47b7086516df59c3d55a5baaa9a3/libmozdata/phabricator.py#L265.

@marco-c
Copy link
Collaborator

marco-c commented Feb 2, 2024

I'll close this as it has been done, let's track the other problem in another issue (we can either always assume latest from branch, or use the other property if refs.base.identifier is not the right one).

@marco-c marco-c closed this as completed Feb 2, 2024
@cgsheeh
Copy link
Member

cgsheeh commented Feb 2, 2024

I added Beta, we should confirm it's working and then I will add the others.

We still need to add the other uplift repos, according to this comment.

@marco-c
Copy link
Collaborator

marco-c commented Feb 2, 2024

I added them yesterday, sorry I forgot to add a comment here.

@cgsheeh
Copy link
Member

cgsheeh commented Feb 2, 2024

Perfect, thanks for the clarification.

@globau
Copy link
Author

globau commented Feb 5, 2024

I've added release and esr to Phab's herald rule, closing bug 1861780

Sheehan's filed #2057 for the parent commit issue.

@marco-c
Copy link
Collaborator

marco-c commented Mar 20, 2024

We are running out of disk space and I couldn't find a way to increase it on Heroku.
Reopening this as I had to remove mozilla-esr115 and mozilla-release.

@marco-c marco-c reopened this Mar 20, 2024
@marco-c
Copy link
Collaborator

marco-c commented Mar 20, 2024

This is what I removed from the config, so we can copy it back once we find a way to increase the disk size or once we move off of Heroku (https://mozilla-hub.atlassian.net/browse/OPST-766):

    - checkout: robust
      try_url: ssh://hg.mozilla.org/try
      try_mode: json
      try_name: try
      name: mozilla-release
      ssh_user: reviewbot
      url: https://hg.mozilla.org/releases/mozilla-release
      decision_env_revision: GECKO_HEAD_REV
      decision_env_repository: GECKO_HEAD_REPOSITORY
      decision_env_prefix: GECKO
      use_latest_revision: true
    - checkout: robust
      try_url: ssh://hg.mozilla.org/try
      try_mode: json
      try_name: try
      name: mozilla-esr115
      ssh_user: reviewbot
      url: https://hg.mozilla.org/releases/mozilla-esr115
      decision_env_revision: GECKO_HEAD_REV
      decision_env_repository: GECKO_HEAD_REPOSITORY
      decision_env_prefix: GECKO
      use_latest_revision: true

@globau
Copy link
Author

globau commented Mar 21, 2024

ohno; this work of code-review-bot is an important part of the uplift process.
Do you have a time frame for when you expect more disk to be added?

@marco-c
Copy link
Collaborator

marco-c commented Mar 21, 2024

I can't find a way to increase the local disk size on Heroku, other than moving from a performance-m dyno to a standard-2x one. Unfortunately, standard-2x has too little memory and runs out during cloning.

I can't think of any other options than https://mozilla-hub.atlassian.net/browse/OPST-766.

@marco-c
Copy link
Collaborator

marco-c commented May 29, 2024

Depends on #2194.

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

No branches or pull requests

3 participants