-
Notifications
You must be signed in to change notification settings - Fork 225
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
SqlServerDsc: Integration tests fail to install instance #1260
Comments
Updated the issue description. It seems this is an intermittent problem when running on the AppVeyor build worker, and probably due to all the previous installed (but stopped) instances on the build worker. Since we can't control what is on the build worker, or takes to long to uninstall all the existing instances, I see only two options.
|
So I did the alternative 1 above, and that made 4 of 4 test runs to pass. Sending in a PR with that change and hold my fingers that it's a solution. 🙂 |
- During testing in AppVeyor the Build Worker is restarted in the install step to make sure the are no residual changes left from a previous SQL Server install on the Build Worker done by the AppVeyor Team (issue dsccommunity#1260).
Reopning this issue since the workaround that was merged only mitigated the issue, but did not solve it. Discussion around this SQL issue is being made in the issue appveyor/ci#2804. A thought is that this is due to are test suite is to memory intensive. One change is that the AppVeyor build worker since two days back has more memory allocated. I suggest we revert the workaround, and if the issue still exist, then look into running test sequentially in several build workers (parallel testing, but for free account they are run sequentially). |
- Reverting the change that was made as part of the issue dsccommunity#1260 in the previous release, as it only mitigated the issue, it did not solve the issue.
- Reverting the change that was made as part of the issue dsccommunity#1260 in the previous release, as it only mitigated the issue, it did not solve the issue.
- Updated the integration test to stop the named instance while installing the other instances to mitigate issue dsccommunity#1260.
- Reverting the change that was made as part of the issue dsccommunity#1260 in the previous release, as it only mitigated the issue, it did not solve the issue.
- Updated the integration test to stop the named instance while installing the other instances to mitigate issue dsccommunity#1260.
It seems the service is in single user mode, and that is why it can't connect to the instance. I totally missed this error message. 😞
That means it must be a timing issue |
Are there someone that knows a direct download URL for the ISO for SQL Server 2016 with SP2? |
- Changes to SqlServerDsc - Reverting the change that was made as part of the issue #1260 in the previous release, as it only mitigated the issue, it did not solve the issue. - Removed the container testing since that broke the integration tests, possible due to using excessive amount of memory on the AppVeyor build worker. This will make the unit tests to take a bit longer to run (issue #1260). - The unit tests and the integration tests are now run in two separate build workers in AppVeyor. One build worker runs the integration tests, while a second build worker runs the unit tests. The build workers runs in parallel on paid accounts, but sequentially on free accounts (issue #1260). - Clean up error handling in some of the integration tests that was part of a workaround for a bug in Pester. The bug is resolved, and the error handling is not again built into Pester. - Changes to SqlSetup - Updated the integration test to stop the named instance while installing the other instances to mitigate issue #1260.
I hope the latest merge of PR #1268 will solve this. I will reopen if we see this issue again. |
There are currently an issue with one of the integration tests, the test that installs a default instance. This is most likely related to a problem on the AppVeyor build worker.
Trying to narrowing down the problem by remove different parts of the integration tests to see if this is a problem with one of the other tests, or just a timing issue on the build worker.
Previously it failed when running dev-branch,
and I have actually gotten it to pass when removing all the unit tests, but sometimes it works, so this error comes intermittent.Posting this issue so that everyone is aware of this problem.
This is blocking all the PR's from merging and blocking release.
The text was updated successfully, but these errors were encountered: