Skip to content
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

Try to improve ubuntu test lab reliability #1617

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Mar 20, 2025

PR testing in #1616 passed twice but now CI is failing because git isn't detecting changes.

I don't know exactly why, but issuing a random git status after editing the files seems to fix it. I'm guessing it's some sort of race on Ubuntu when mtime doesn't move forward by 1 second that is confusing git, which normally only has 1 second resolution; but I really have no idea.

@BillyONeal BillyONeal force-pushed the git-ubuntu branch 4 times, most recently from 04739ed to 02ab9cd Compare March 21, 2025 03:12
@@ -209,12 +209,12 @@ namespace vcpkg

bool git_add_with_index(DiagnosticContext& context, const Path& git_exe, const Path& index_file, const Path& target)
{
Command cmd(git_exe);
cmd.string_arg("-c").string_arg("core.autocrlf=false").string_arg("-c").string_arg("core.untrackedCache=false");
RedirectedProcessLaunchSettings launch_settings;
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove core.untrackedCache=false?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it didn't seem to actually fix the problem and it makes it slower

@BillyONeal BillyONeal merged commit 1409d42 into microsoft:main Mar 21, 2025
7 checks passed
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