Skip to content

Conversation

bhearsum
Copy link
Contributor

@bhearsum bhearsum commented Jun 3, 2025

tip is an ambigious reference: it can be the current tip of any branch in the repository. In many cases on hg.mozilla.org, this ends up being a tags branch, which are forked once from an old cycle and never updated.

default is probably what we want here, as it will always be the tip of the default branch?

This came up in https://firefox-ci-tc.services.mozilla.com/tasks/D_iVb4ZSQ_mdEK-ODubB3Q:

2025-06-03 13:26:43.000785 [INFO    ] [info     ] Mercurial                      stderr=b'real URL is https://hg-edge.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:44.000194 [INFO    ] [info     ] Mercurial                      stderr=b'abort: empty revision set\n'
2025-06-03 13:26:44.000195 [INFO    ] [info     ] Pull updates from remote repo 
2025-06-03 13:26:44.000199 [INFO    ] [info     ] Mercurial                      stdout=b'pulling from https://hg.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:44.000661 [INFO    ] [info     ] Mercurial                      stderr=b'real URL is https://hg-edge.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:45.000126 [INFO    ] [info     ] Mercurial                      stdout=b'searching for changes\n'
2025-06-03 13:26:45.000128 [INFO    ] [info     ] Mercurial                      stdout=b'no changes found\n'
2025-06-03 13:26:45.000486 [INFO    ] [info     ] Mercurial                      stdout=b'added 0 pushes\n'
2025-06-03 13:26:45.000598 [INFO    ] [info     ] Mercurial                      stderr=b"abort: unknown revision '9e0bb48183fc'\n"
2025-06-03 13:26:45.000599 [INFO    ] [info     ] Updating repo to revision tip 

@marco-c
Copy link
Collaborator

marco-c commented Jun 3, 2025

I think to fix the issue you're seeing, we'd need to update https://github.com/mozilla/libmozevent instead (which is using "tip" in a few places)

`tip` is an ambigious reference: it can be the current tip of any branch in the repository. In many cases on hg.mozilla.org, this ends up being a `tags` branch, which are forked once from an old cycle and never updated.

`default` is probably what we want here, as it will always be the tip of the default branch?

This came up in https://firefox-ci-tc.services.mozilla.com/tasks/D_iVb4ZSQ_mdEK-ODubB3Q:

```
2025-06-03 13:26:43.000785 [INFO    ] [info     ] Mercurial                      stderr=b'real URL is https://hg-edge.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:44.000194 [INFO    ] [info     ] Mercurial                      stderr=b'abort: empty revision set\n'
2025-06-03 13:26:44.000195 [INFO    ] [info     ] Pull updates from remote repo 
2025-06-03 13:26:44.000199 [INFO    ] [info     ] Mercurial                      stdout=b'pulling from https://hg.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:44.000661 [INFO    ] [info     ] Mercurial                      stderr=b'real URL is https://hg-edge.mozilla.org/releases/mozilla-release\n'
2025-06-03 13:26:45.000126 [INFO    ] [info     ] Mercurial                      stdout=b'searching for changes\n'
2025-06-03 13:26:45.000128 [INFO    ] [info     ] Mercurial                      stdout=b'no changes found\n'
2025-06-03 13:26:45.000486 [INFO    ] [info     ] Mercurial                      stdout=b'added 0 pushes\n'
2025-06-03 13:26:45.000598 [INFO    ] [info     ] Mercurial                      stderr=b"abort: unknown revision '9e0bb48183fc'\n"
2025-06-03 13:26:45.000599 [INFO    ] [info     ] Updating repo to revision tip 
```
@bhearsum bhearsum force-pushed the push-uokmxpkrqkyz branch from 4de86e0 to 0af65c3 Compare June 3, 2025 13:54
@bhearsum
Copy link
Contributor Author

bhearsum commented Jun 3, 2025

ok, i'm fine to close this if you want

@marco-c
Copy link
Collaborator

marco-c commented Jun 3, 2025

I don't remember how base_changeset is used, CC @La0

@La0
Copy link
Collaborator

La0 commented Jun 3, 2025

I think you need to configure the Repository instance from libmozevent there to set the default_revision parameter on which the stack of patches is applied.

base_changeset should be used there

@bhearsum
Copy link
Contributor Author

bhearsum commented Jun 6, 2025

I think this was hit again in https://firefox-ci-tc.services.mozilla.com/tasks/IoCuKdytRne1yK28UkiT6A

(Unfortunately, I don't have time to drive this home.)

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