Skip to content

Use new AppVeyor image to test against SQL Server 2022#10101

Merged
potatoqualitee merged 22 commits intodevelopmentfrom
test_2008
Jan 31, 2026
Merged

Use new AppVeyor image to test against SQL Server 2022#10101
potatoqualitee merged 22 commits intodevelopmentfrom
test_2008

Conversation

@andreasjordan
Copy link
Collaborator

Just a test to see which commands would test successfully against the 2008R2 instance.

My plan is to tag those commands to be able to run an extra scenario with 2008R2.

@andreasjordan andreasjordan marked this pull request as ready for review January 19, 2026 21:34
@andreasjordan
Copy link
Collaborator Author

This PR shows that it is possible to test both against 2017/2019 with the latest image and also against 2008R2/2017 with the current image.

It takes a long time to run all the tests, so this should not be used all the time. But we could just comment out the last two scenarios in the matrix-part of the appveyor.yml. Then we can include them from time to time or just run them on the merge to development or just before a new release.

One test against 2019 is currently failing as there is not patch installed in the 2019 instance. We would have to change the test to accept that situation on appveyor.

The two failing tests against 2008 in the last run are due to the instability of some tests - they both succeded in the previous run.

Feedback is welcome.

@niphlod
Copy link
Contributor

niphlod commented Jan 20, 2026

again, since I think 2-3 months, "normal" PRs do not run the whole suite, just the tests of the changed functions plus all dependencies. "Long runs" shouldn't be an issue since most PRs target 1 function.

@andreasjordan andreasjordan changed the title Just a test: Use 2008R2 as base version Use new AppVeyor image to test against SQL Server 2022 Jan 25, 2026
@andreasjordan
Copy link
Collaborator Author

Looks like the documentation of AppVeyor is old (just opened an issue). There is a SQL Server 2022 instance. So I recommend we use the new image and test most of the commands against SQL Server 2022.

Let's see if all tests pass...

@andreasjordan
Copy link
Collaborator Author

andreasjordan commented Jan 26, 2026

Looks like the last changes introduced problems on AppVeyor:
image

image

I will look into this...

@andreasjordan
Copy link
Collaborator Author

andreasjordan commented Jan 26, 2026

This is the only change relevant to the failure:
image

It works against SQL Server 2016 but not against SQL Server 2022.

This code is currently only executed when using Export-DbaCredential. When we use the linked server commands, then the DAC is created beforehand and that DAC is used instead of using Invoke-Command2 and a local DAC.

I will open a new PR (EDIT: Open an issue to discuss) to use the same logic in the credential commands like we introduced in the linked server commands.

So this PR will wait here for some more days...

@potatoqualitee
Copy link
Member

@andreasjordan thats weird as hell! I'm surprised something so fundamental has different behavior between two versions.

all that said, thank you 🙌🏼

@potatoqualitee potatoqualitee merged commit a1f25f2 into development Jan 31, 2026
14 checks passed
@potatoqualitee potatoqualitee deleted the test_2008 branch January 31, 2026 01:59
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