Skip to content

Conversation

@MichaelSimons
Copy link
Member

Fixes dotnet/source-build#2550

./build.sh --run-smoke-test will now captures all prereq packages downloaded from online sources that are not part of source-build into dotnet-smoke-test-prereqs.xyz.tar.gz in the tarball build output next to the other tarball artifacts. The smoke-tests will now run two passes. Once against online package and a second against source-build packages w/prereqs.

@MichaelSimons MichaelSimons requested a review from a team as a code owner January 28, 2022 19:15
@MichaelSimons
Copy link
Member Author

These changes have passed PR validation and an internal build w/bootstrapping.

@MichaelSimons MichaelSimons changed the title Refactor smoke-test to captures prereqs Refactor smoke-test to capture prereqs Feb 2, 2022
@MichaelSimons
Copy link
Member Author

MichaelSimons commented Feb 3, 2022

@crummel, @lbussell - please review when convenient.

Copy link

@crummel crummel left a comment

Choose a reason for hiding this comment

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

One small gotcha, otherwise LGTM.

public static string DotNetDirectory { get; } = Environment.GetEnvironmentVariable("DOTNET_DIR") ?? "./.dotnet";
public static string DotNetTarballPath { get; } = Environment.GetEnvironmentVariable(DotNetTarballPathEnv) ?? string.Empty;
public const string DotNetTarballPathEnv = "DOTNET_TARBALL_PATH";
public static bool ExcludeOnlineTests { get; } = Environment.GetEnvironmentVariable("EXCLUDE_ONLINE_TESTS") != null;
Copy link

Choose a reason for hiding this comment

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

Suggested change
public static bool ExcludeOnlineTests { get; } = Environment.GetEnvironmentVariable("EXCLUDE_ONLINE_TESTS") != null;
public static bool ExcludeOnlineTests { get; } = Convert.ToBoolean(Environment.GetEnvironmentVariable("EXCLUDE_ONLINE_TESTS"));

I think it's more intuitive to avoid the issue with the environment variable being EXCLUDE_ONLINE_TESTS=false causing them to be excluded.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair suggestion. I think I like avoiding exceptions for this scenario though so how about - bool.TryParse(Environment.GetEnvironmentVariable("EXCLUDE_ONLINE_TESTS"), out bool excludeOnlineTests) ? excludeOnlineTests : false;

@MichaelSimons MichaelSimons merged commit 2842b74 into dotnet:release/6.0.1xx Feb 4, 2022
@MichaelSimons MichaelSimons deleted the smoke-test-prereqs branch February 4, 2022 18:52
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.

2 participants