Skip to content

[upgrade] Test reliability#875

Merged
alameenshah merged 1 commit into
microsoft:masterfrom
alameenshah:test_reliability_852
Mar 5, 2019
Merged

[upgrade] Test reliability#875
alameenshah merged 1 commit into
microsoft:masterfrom
alameenshah:test_reliability_852

Conversation

@alameenshah
Copy link
Copy Markdown
Contributor

The issue is that when gvfs upgrade verb uses Nuget server for upgrades when Nuget config is available. The failing test sets the upgrade ring to "None". Then creates dummy upgrade marker file (C:\ProgramData\GVFS\GVFS.Upgrade\highestAvailableVersion). Then launches upgrade verb. Since the upgrade ring is None, the test expects upgrade verb to delete the marker file. This used to work. But now, upgrade verb will use Nuget upgrader when Nuget config is availble. Nuget upgrader ignores upgrade ring and checks for upgrade. It will not delete the marker file, if it finds one. Updated the test to delete Nuget config before running.

Fixes #852

@alameenshah alameenshah changed the title Test reliability [upgrade] Test reliability Mar 1, 2019
Copy link
Copy Markdown
Member

@wilbaker wilbaker left a comment

Choose a reason for hiding this comment

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

The overall change looks good, I've left some suggestions on updating the comments in the test and moving the helper methods.

Comment thread GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/GVFSUpgradeReminderTests.cs Outdated
Comment thread GVFS/GVFS.FunctionalTests/Tests/EnlistmentPerFixture/GVFSUpgradeReminderTests.cs Outdated
@jrbriggs jrbriggs added the type: test-reliability Issues that contribute to test failures label Mar 4, 2019
@jrbriggs jrbriggs added this to the M149 milestone Mar 4, 2019
The issue is that when gvfs upgrade verb uses Nuget server for upgrades when Nuget config is available. The failing test sets the upgrade ring to "None". Then creates dummy upgrade marker file (C:\ProgramData\GVFS\GVFS.Upgrade\highestAvailableVersion). Then launches upgrade verb. Since the upgrade ring is None, the test expects upgrade verb to delete the marker file. This used to work. But now, upgrade verb will use Nuget upgrader when Nuget config is availble. Nuget upgrader ignores upgrade ring and checks for upgrade. It will not delete the marker file, if it finds one. Updated the test to delete Nuget config before running.

Fixes #852
@alameenshah alameenshah merged commit 2adef0c into microsoft:master Mar 5, 2019
@alameenshah alameenshah deleted the test_reliability_852 branch March 8, 2019 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: test-reliability Issues that contribute to test failures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants