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

problem with gitlab push #973

Open
buestad opened this issue Jan 3, 2023 · 2 comments
Open

problem with gitlab push #973

buestad opened this issue Jan 3, 2023 · 2 comments
Labels
bridge bridge related issues

Comments

@buestad
Copy link

buestad commented Jan 3, 2023

I have a self hosted GitLab 15.6.0-ee and I cannot push any locally created issues.
I am using the pre built 0.8.0 binary for win64

  • Bridge configured correctly (I think)
  • Pulled issues from project (with some errors)
  • Adopted my gitlab user which comes when I pull
  • Add a new bug/issue using the WebUI
  • git bug ls shows the new bug
>git bug bridge push
exported 0 issues with default bridge

As mentioned, the git bug bridge pull did not run cleanly:

>git bug bridge pull
[8844b1e] new identity: 8844b1eb4852a9a84f497c78a93057d2f588a4c049652d062d75885b35b1f4e5
[abbefcc] new issue: abbefcc80a4fee9566b8205f324c4b2e8ee765a81118d77296eddb30605493a5
import error on entity 608: issue event creation: unexpected event
import error on entity 609: issue event creation: unexpected event
import error on entity 610: issue event creation: unexpected event
[abbefcc] new comment: a3b6b3efcbc80a54fee29566eb82085f3274c4bc2e8e4e7651a811018d7d7296
[abbefcc] changed status with op: d08663dff96760da23ec10b611f48aa5662ae54f3c1c1653602bb36bf02e5fea
[04e5722] new issue: 04e5722e69e3a4d9f32fea893bc11b7147d66efe1f76723838d82b7ed9d0b48f
[04e5722] changed status with op: 0b67543735ca90a9662d3a4c2af39a10d945c02dfc70ae602ca7ff9195ff9492
[2b81d80] new issue: 2b81d800b10d954848ecdfb05158cb58d5521562001725e29cc773a1b7e155b5
[2b81d80] new comment: 2cb0851d8f00b110d95d48489ecdf9b051158cb158d5e521576200f17253e29c
import error on entity 713: issue event creation: unexpected event
import error on entity 714: issue event creation: unexpected event
[2b81d80] changed status with op: b1c1eca65b76a98e22404db6ef791568b838539629070ca070391907f23764a5
[13abb35] new issue: 13abb3506964e26e26d1a6e80416eacdf0ec88a2a398f92425819759bb1d7a94
[13abb35] new comment: 1b3fa3bb3a5069f64e246e261d1a6de804816eabcdf0eec883a2a3098f982425
[39f55ae] new issue: 39f55aeffc6b18e7a65fb9c4401b62fbd592fb1bb5241a8b0c870b41b24d5992
import error on entity 913: issue event creation: unexpected event
import error on entity 915: issue event creation: unexpected event
[663f0f4] new issue: 663f0f4f501039cf5d29ad1ab118af1017910a1784bb8b8e819aad95a386c6be
import error on entity 914: issue event creation: unexpected event
[db32949] new issue: db32949776b3a09d9269749d2589f64d6ab333550149bf94339321c492d18372
import error on entity 909: issue event creation: unexpected event
[db32949] new comment: dcb938294e97767b3a089d928697489d25889f644d6acb33395501849bfa9433
[cafc218] new issue: cafc218f770def0533393798257caf9d3d07c5a60bf6984a08d414e0110427a8
[cafc218] new comment: c0a6f3c2198f77d0def1053363937a982577caf59d3d907c51a60b3f69834a08
import error on entity 912: issue event creation: unexpected event
import error on entity 999: issue event creation: unexpected event
[4524143] new issue: 45241432218c61b8587453bcd68fff6445182ec752b64120db39936b318241e0
[4524143] new comment: 44582c41463221a8c61cb858e74536bcd618fffe64453182ebc7524b641b20db
[af16b22] new issue: af16b22e1400d0b00530603cd82ac8cbab8242ad8e7d5e63a14e2286d7491f04
import error on entity 997: issue event creation: unexpected event
[43dd5be] new issue: 43dd5beb54799c1ef4c5e1b73e3f6373261931ee3171bd106e6695d8fe03fc97
import error on entity 1013: issue event creation: unexpected event
import error on entity 1014: issue event creation: unexpected event
imported 11 issues and 1 identities with default bridge
@MichaelMure MichaelMure added the bridge bridge related issues label Jan 3, 2023
@MichaelMure
Copy link
Owner

@5nord FYI

Looks like that:

  • Gitlab released a new version with new kind of event
  • the gitlab bridge assign EventUnknown to those when they are not recognized (dropping the details of the event) (for example
    return EventUnknown
    )
  • the gitlab bridge return an error when such an EventUnknown occurs:
    return fmt.Errorf("unexpected event")

That last part is problematic as it's quite reasonable for gitlab to add more events. Point number 2 could also be a problem, depending on how we look at it. I suppose we should just ignore the unknown events. Currently it fails the import of that particular issue (it doesn't commit).
@buestad any idea what kind of event that could be, if you look at the issues that fail to import?

As for the push problem it could be related to that first problem but I suspect it's a different one. The CI does work though, so that could be specific to that new gitlab version.

@buestad
Copy link
Author

buestad commented Jan 4, 2023

I am 99% sure that the unexpected event is related to commit links. (When a commit message has a # and issue number)
image

It looks like after switching identity (user adopt) after the first pull there are some mismatch with the UUIDs on the issues? This also happens if I do a commit to the repos and the pull the issues afterwards.

Here is some console output which might be of interest?:

C:\Projects\git-test [main ≡]> git bug user ls
50494a5 Henrik Buestad
C:\Projects\git-test [main ≡]> git bug bridge pull
[b3883c2] new identity: b3883c275de13eb6af82192285a88abba3c9aa1fed1b24eb7b42eb449be9fcee
[b2be3a8] new issue: b2be3a8d3f974d23018214664b95393e5e81ad0621329f9a8f4b413895d8f71a
import error on entity 1022: issue event creation: unexpected event
[2644b2f] new issue: 2644b2fd06f93575899e4ad3aabad6dea8bbcc8fc7ed504f6b6da635644c59fe
import error on entity 1028: issue event creation: unexpected event
import error on entity 1029: issue event creation: unexpected event
[393b53d] new issue: 393b53d49c1d6ae3289093491a7e1c34568613e876e0cff3b59ca5b21d1d0866
imported 3 issues and 1 identities with default bridge
C:\Projects\git-test [main ≡]> git bug bridge pull
import error on entity 1022: issue event creation: unexpected event
import error on entity 1028: issue event creation: unexpected event
import error on entity 1029: issue event creation: unexpected event
imported 0 issues and 0 identities with default bridge
C:\Projects\git-test [main ≡]> git bug user ls
50494a5 Henrik Buestad
b3883c2 Buestad Henrik (buesthe)
C:\Projects\git-test [main ≡]> git bug user adopt b3883c2
Your identity is now: Buestad Henrik (buesthe)
C:\Projects\git-test [main ≡]> git bug bridge pull
import error on entity 653: issue event creation: Multiple matching operation found:
b5836414f64f108ae79ddc66ac89cbabad671f322c5b8b247923acbc14e0c19c
eb41f3e8ce9ef48f0875f92a5dcaa53befdf8b0dfe7231d0859c2934a0b023ea
import error on entity 654: issue event creation: Multiple matching operation found:
c4fe840e1794f9e93d70f0a7c425158f4ab07b19d062da1535d02a4724222849
18e1778bea1b7fd702e8b6420b1819e4bf28d1b26fda6cf5cdc6c3114dd259c7
import error on entity 655: issue event creation: Multiple matching operation found:
d3f915e32b204acb639dccfba115b068cf82aa556f8866db2e71a7fad7a4661c
49e4e737343da2765e0c5cbf9d57f9c9a06dcb2113c0f6e72cea6e3c719fed71
import error on entity 656: issue event creation: Multiple matching operation found:
a21da9149c183079c80b6959a9a506d23921bddb0e6f73827c00e8c719bcbb31
70a00d43b87409eb9c724a9676a572d28bd1ce34e332f1c6943f8bacd757cc26
import error on entity 657: issue event creation: Multiple matching operation found:
3472314a03bf9a2277126ce6327099541c3f8cc3acdec54e067c5d44c293ad85
1a862a286cf4da2f6a314c111091ed487e4d57f42598d2585c64102e3e7601e7
import error on entity 658: issue event creation: Multiple matching operation found:
332fb56736057a9fff417cee8005bc56040ee5cea4932bde8bb54e15cec16826
719f937b3022ce8234abd98f20b5a1074f68cb69655e74783d2d8258da88ac75
import error on entity 1022: issue event creation: unexpected event
import error on entity 659: issue event creation: Multiple matching operation found:
71ef2eacca0e9de9542b147d31b8214458eb2b92c44e1c6935e9b80e6b417e70
e1067fb83041ffa5eda440c7fd2455945e901c3cd7be3e14bb1a3cbaefb5676f
import error on entity 1028: issue event creation: unexpected event
import error on entity 1029: issue event creation: unexpected event
imported 0 issues and 0 identities with default bridge
C:\Projects\git-test [main ≡]> git bug ls
b2be3a8 open    Add something sensible to first text file      ◼ ◼      Buestad Henrik…
2644b2f open    test from GitLab                                 ◼      Buestad Henrik…
393b53d open    simple issue                                            Buestad Henrik…
C:\Projects\git-test [main ≡]> git bug webui
Web UI: http://127.0.0.1:60352
Graphql API: http://127.0.0.1:60352/graphql
Graphql Playground: http://127.0.0.1:60352/playground
Press Ctrl+c to quit
WebUI is shutting down...
WebUI stopped
C:\Projects\git-test [main ≡]> git bug ls
b2be3a8 open    Add something sensible to first text file      ◼ ◼      Buestad Henrik…
2644b2f open    test from GitLab                                 ◼      Buestad Henrik…
393b53d open    simple issue                                            Buestad Henrik…
98b6959 open    Test from git-bug                                       Buestad Henrik…
C:\Projects\git-test [main ≡]> git bug bridge push
exported 0 issues with default bridge

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

No branches or pull requests

2 participants