Theia: [test][git][windows] Flaky git test on windows.

Created on 16 Jun 2020  路  7Comments  路  Source: eclipse-theia/theia

Bug Description:

The Windows CI has failed for a completely unrelated PR:

  1) git
       branch
         should list the branch in chronological order:
      AssertionError: expected [ 'a', 'b', 'c', 'master' ] to deeply equal [ 'master', 'c', 'b', 'a' ]
      + expected - actual
       [
      +  "master"
      +  "c"
      +  "b"
         "a"
      -  "b"
      -  "c"
      -  "master"
       ]

      at Suite.<anonymous> (lib\node\dugite-git.spec.js:1331:126)
      at step (lib\node\dugite-git.spec.js:48:23)
      at Object.next (lib\node\dugite-git.spec.js:29:53)
      at fulfilled (lib\node\dugite-git.spec.js:20:58)
      at process._tickCallback (internal/process/next_tick.js:68:7)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    at Promise.all.then.arr (C:\Users\travis\build\eclipse-theia\theia\node_modules\execa\index.js:236:11)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 1,
  killed: false,
  stdout:

Build: https://travis-ci.com/github/eclipse-theia/theia/jobs/349708817

Steps to Reproduce:

1.
2.
3.


Additional Information

  • Operating System:
  • Theia Version:
ci git help wanted test

All 7 comments

The Git version has changed on Travis from 2.25.0.windows.1 to 2.27.0.windows.1.

I had 2.24.1.windows.2 locally, the tests passed, then I installed 2.27.0.windows.1, ran the tests, they still passed. I am not sure if this is related to the Git version.

I am not sure if this is related to the Git version.

It is, finally, I managed to reproduce it locally.

@kittaakos do we close the issue or do we keep it open to track fixing the actual test?

do we keep it open to track fixing the actual test?

+1 for keeping it open; it won't hurt. What do you think, @vince-fugnitto?

do we keep it open to track fixing the actual test?

+1 for keeping it open; it won't hurt. What do you think, @vince-fugnitto?

Sounds good to me :)

Hummm - just noticed this issue. For me it's happening on my Ubuntu 16.04 desktop, with similar git version:

$ git --version
git version 2.27.0
43 passing (17s)
  3 pending
  1 failing

  1) git
       branch
         should list the branch in chronological order:

      AssertionError: expected [ 'a', 'b', 'c', 'master' ] to deeply equal [ 'master', 'c', 'b', 'a' ]
      + expected - actual

       [
      +  "master"
      +  "c"
      +  "b"
         "a"
      -  "b"
      -  "c"
      -  "master"
       ]

      at Context.<anonymous> (lib/node/dugite-git.spec.js:1336:130)
      at step (lib/node/dugite-git.spec.js:48:23)
      at Object.next (lib/node/dugite-git.spec.js:29:53)
      at fulfilled (lib/node/dugite-git.spec.js:20:58)
      at process._tickCallback (internal/process/next_tick.js:68:7)

So maybe just version-related and not Windows-specific?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beetix picture Beetix  路  3Comments

jankeromnes picture jankeromnes  路  3Comments

marechal-p picture marechal-p  路  3Comments

akosyakov picture akosyakov  路  3Comments

tetchel picture tetchel  路  3Comments