Skip to content

Enable integrations API tests for Windows CI#39240

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
olljanat:enable-new-integration-tests-for-win
Jun 11, 2019
Merged

Enable integrations API tests for Windows CI#39240
cpuguy83 merged 1 commit intomoby:masterfrom
olljanat:enable-new-integration-tests-for-win

Conversation

@olljanat
Copy link
Contributor

@olljanat olljanat commented May 20, 2019

- What I did
I noticed from #37715 (comment) that Windows CI currently does not run those integration API tests so I enabled them.

- How I did it
Little bit PowerShell and small tuning to tests utils which was not fully compatible with Windows.

- How to verify it
Pass CI and verify that those new tests actually run on it.

Closes #36748

@codecov
Copy link

codecov bot commented May 20, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@238f8ea). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #39240   +/-   ##
=========================================
  Coverage          ?   37.01%           
=========================================
  Files             ?      612           
  Lines             ?    45655           
  Branches          ?        0           
=========================================
  Hits              ?    16899           
  Misses            ?    26470           
  Partials          ?     2286

@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from 7c41f55 to d5d4629 Compare May 20, 2019 22:54
@GordonTheTurtle GordonTheTurtle added the dco/no Automatically set by a bot when one of the commits lacks proper signature label May 20, 2019
@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "enable-new-integration-tests-for-win" [email protected]:olljanat/moby.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354606904
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from d5d4629 to 78c046c Compare May 20, 2019 22:55
@GordonTheTurtle GordonTheTurtle removed the dco/no Automatically set by a bot when one of the commits lacks proper signature label May 20, 2019
@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from 78c046c to bffc2c3 Compare May 20, 2019 23:16
@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch 2 times, most recently from 82a9dd1 to 1828d5f Compare May 22, 2019 14:32
@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch 7 times, most recently from b2dfa5e to 6eb1c8a Compare June 4, 2019 19:52
@olljanat olljanat changed the title WIP: Enable integrations API tests for Windows CI Enable integrations API tests for Windows CI Jun 4, 2019
@olljanat
Copy link
Contributor Author

olljanat commented Jun 4, 2019

RS1 will fail to that know issue but you can see from log that both RS1 and RS5 did run those integration API tests correctly:

23:04:01 INFO: Integration API tests being run from the host:
23:04:01 INFO: make.ps1 starting at 06/04/2019 20:04:01
23:04:02 Building test suite binary .\integration\build
23:04:17 Building test suite binary .\integration\config
23:04:20 Building test suite binary .\integration\container
23:04:22 Building test suite binary .\integration\image
23:04:24 Building test suite binary .\integration\network
23:04:26 Building test suite binary .\integration\plugin
23:04:27 Building test suite binary .\integration\secret
23:04:29 Building test suite binary .\integration\service
23:04:35 Building test suite binary .\integration\session
23:04:37 Building test suite binary .\integration\system
23:04:39 Building test suite binary .\integration\volume
23:04:41 Building test suite binary .\integration\network\ipvlan
23:04:43 Building test suite binary .\integration\network\macvlan
23:04:45 Building test suite binary .\integration\plugin\authz
23:04:46 Building test suite binary .\integration\plugin\common
23:04:48 Building test suite binary .\integration\plugin\graphdriver
23:04:50 Building test suite binary .\integration\plugin\logging
23:04:52 Building test suite binary .\integration\plugin\volumes
23:04:55 Building test suite binary .\integration\plugin\logging\cmd
23:04:55 Building test suite binary .\integration\plugin\logging\cmd\close_on_start
23:04:57 Building test suite binary .\integration\plugin\logging\cmd\dummy
23:04:58 Building test suite binary .\integration\plugin\volumes\cmd
23:04:58 Building test suite binary .\integration\plugin\volumes\cmd\dummy
23:05:00 Running C:\gopath\src\github.com\docker\docker\integration\build
23:05:00 INFO: Windows Base image is  microsoft/windowsservercore
23:05:00 INFO: Testing against a local daemon
23:05:02 PASS
23:05:02 Running C:\gopath\src\github.com\docker\docker\integration\config
23:05:03 INFO: Windows Base image is  microsoft/windowsservercore
23:05:03 INFO: Testing against a local daemon
23:05:03 PASS
23:05:03 Running C:\gopath\src\github.com\docker\docker\integration\container
23:05:03 INFO: Windows Base image is  microsoft/windowsservercore
23:05:03 INFO: Testing against a local daemon
23:05:57 PASS
23:05:57 Running C:\gopath\src\github.com\docker\docker\integration\image
23:05:58 INFO: Windows Base image is  microsoft/windowsservercore
23:05:58 INFO: Testing against a local daemon
23:05:58 PASS
23:05:58 Running C:\gopath\src\github.com\docker\docker\integration\network
23:05:58 INFO: Windows Base image is  microsoft/windowsservercore
23:05:58 INFO: Testing against a local daemon
23:05:58 PASS
23:05:58 Running C:\gopath\src\github.com\docker\docker\integration\plugin
23:05:58 PASS
23:05:58 Running C:\gopath\src\github.com\docker\docker\integration\secret
23:05:59 INFO: Windows Base image is  microsoft/windowsservercore
23:05:59 INFO: Testing against a local daemon
23:05:59 PASS
23:05:59 Running C:\gopath\src\github.com\docker\docker\integration\service
23:05:59 INFO: Windows Base image is  microsoft/windowsservercore
23:05:59 INFO: Testing against a local daemon
23:05:59 PASS
23:05:59 Running C:\gopath\src\github.com\docker\docker\integration\session
23:05:59 INFO: Windows Base image is  microsoft/windowsservercore
23:05:59 INFO: Testing against a local daemon
23:05:59 PASS
23:05:59 Running C:\gopath\src\github.com\docker\docker\integration\system
23:06:00 INFO: Windows Base image is  microsoft/windowsservercore
23:06:00 INFO: Testing against a local daemon
23:06:01 PASS
23:06:01 Running C:\gopath\src\github.com\docker\docker\integration\volume
23:06:01 INFO: Windows Base image is  microsoft/windowsservercore
23:06:01 INFO: Testing against a local daemon
23:06:01 PASS
23:06:01 Running C:\gopath\src\github.com\docker\docker\integration\network\ipvlan
23:06:02 INFO: Windows Base image is  microsoft/windowsservercore
23:06:02 INFO: Testing against a local daemon
23:06:02 PASS
23:06:02 Running C:\gopath\src\github.com\docker\docker\integration\network\macvlan
23:06:02 INFO: Windows Base image is  microsoft/windowsservercore
23:06:02 INFO: Testing against a local daemon
23:06:02 PASS
23:06:02 Running C:\gopath\src\github.com\docker\docker\integration\plugin\authz
23:06:02 PASS
23:06:02 Running C:\gopath\src\github.com\docker\docker\integration\plugin\common
23:06:02 INFO: Windows Base image is  microsoft/windowsservercore
23:06:02 INFO: Testing against a local daemon
23:06:02 PASS
23:06:02 Running C:\gopath\src\github.com\docker\docker\integration\plugin\graphdriver
23:06:03 INFO: Windows Base image is  microsoft/windowsservercore
23:06:03 INFO: Testing against a local daemon
23:06:03 PASS
23:06:03 Running C:\gopath\src\github.com\docker\docker\integration\plugin\logging
23:06:03 INFO: Windows Base image is  microsoft/windowsservercore
23:06:03 INFO: Testing against a local daemon
23:06:03 PASS
23:06:03 Running C:\gopath\src\github.com\docker\docker\integration\plugin\volumes
23:06:04 INFO: Windows Base image is  microsoft/windowsservercore
23:06:04 Running C:\gopath\src\github.com\docker\docker\integration\plugin\logging\cmd
23:06:04 PASS
23:06:04 Running C:\gopath\src\github.com\docker\docker\integration\plugin\logging\cmd\close_on_start
23:06:04 PASS
23:06:04 Running C:\gopath\src\github.com\docker\docker\integration\plugin\logging\cmd\dummy
23:06:04 PASS
23:06:04 Running C:\gopath\src\github.com\docker\docker\integration\plugin\volumes\cmd
23:06:04 PASS
23:06:04 Running C:\gopath\src\github.com\docker\docker\integration\plugin\volumes\cmd\dummy
23:06:04 PASS

@thaJeztah
Copy link
Member

❤️ With that RS1 fix merged; could you rebase to re-trigger CI and re-run with the fix in place?

@thaJeztah
Copy link
Member

/cc @ddebroy @StefanScherer @jhowardmsft ptal

@thaJeztah
Copy link
Member

I can give it a quick go

@thaJeztah
Copy link
Member

Opened #39325, but I see it failing on RS1 as well, so there might be an actual issue somewhere 🤔

@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from 021309e to 36340fc Compare June 5, 2019 15:46
@olljanat
Copy link
Contributor Author

olljanat commented Jun 5, 2019

Included #39325 here and looks that it fixes CI issue. Will rebase after that one is merged.

Copy link
Contributor

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@thaJeztah
Copy link
Member

#39325 was merged, so you can rebase if you want

@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from 36340fc to 3d40f65 Compare June 6, 2019 18:29
@olljanat
Copy link
Contributor Author

olljanat commented Jun 6, 2019

Done and now both RS1 and RS5 passed CI 💚

@thaJeztah
Copy link
Member

Are any of the tests actually run? Looking at the duration of running that test (less than a minute) 🤔 (possibly most are non-windows, but curious)

@olljanat
Copy link
Contributor Author

olljanat commented Jun 6, 2019

Are any of the tests actually run? Looking at the duration of running that test (less than a minute) (possibly most are non-windows, but curious)

It does test something as tests was failing to error that there is no command top and test TestVolumesCreateAndList failed to error that cannot find container with correct name without those modifications which I included to this.

However some flag is most probably missing as it does not print info that which tests it actually runs like Linux does (even when I run it locally).

@thaJeztah
Copy link
Member

However some flag is most probably missing as it does not print info that which tests it actually runs like Linux does (even when I run it locally).

Hm, right. @vdemeester do you know from the top of your head?

@olljanat olljanat force-pushed the enable-new-integration-tests-for-win branch from 3d40f65 to 2f22247 Compare June 10, 2019 18:33
@olljanat
Copy link
Contributor Author

Included verbose flag -test.vnow it also tell which tests it run 😎

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@thaJeztah
Copy link
Member

ping @cpuguy83 @jhowardmsft LGTY?

@lowenna
Copy link
Member

lowenna commented Jun 11, 2019

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integration package is not ran on the windowsRS1 CI

7 participants