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

Make enforce-clang-format.cmd also run git diff. #255

Merged
merged 4 commits into from
Nov 5, 2019

Conversation

StephanTLavavej
Copy link
Member

@StephanTLavavej StephanTLavavej commented Nov 4, 2019

Description

Make enforce-clang-format.cmd also run git diff.

This will produce more informative output for clang-format failures.

Also add 5-minute timeouts to every task in run_build.yml except 'Install MSVC Preview'. This number was chosen semi-arbitrarily (successful runs appear to have sub-1-minute times for each task).

Checklist

Be sure you've read README.md and understand the scope of this repo.

If you're unsure about a box, leave it unchecked. A maintainer will help you.

  • Identifiers in product code changes are properly _Ugly as per
    https://eel.is/c++draft/lex.name#3.1 or there are no product code changes.
  • The STL builds successfully and all tests have passed (must be manually
    verified by an STL maintainer before automated testing is enabled on GitHub,
    leave this unchecked for initial submission).
  • These changes introduce no known ABI breaks (adding members, renaming
    members, adding virtual functions, changing whether a type is an aggregate
    or trivially copyable, etc.).
  • These changes were written from scratch using only this repository and
    the C++ Working Draft as a reference (and any other cited standards).
    If they were derived from a project that's already listed in NOTICE.txt,
    that's fine, but please mention it. If they were derived from any other
    project (including Boost and libc++, which are not yet listed in
    NOTICE.txt), you must mention it here, so we can determine whether the
    license is compatible and what else needs to be done.

@StephanTLavavej
Copy link
Member Author

@BillyONeal, my intentionally failing run (original PR) looked great. When I force-pushed the change that's intended to succeed, clang-format appears to be hanging with "Waiting for console output...". Do you know why this is happening? I don't like sporadic failures.

@StephanTLavavej
Copy link
Member Author

The Azure Pipelines run after I pushed the 5-minute timeout here succeeded, but now I observe #246 also hanging on enforce-clang-format. Something is wrong.

@StephanTLavavej
Copy link
Member Author

I filed #257 for the sporadic clang-format hang. The hang is pre-existing and not caused by this PR.

azure-devops/run_build.yml Show resolved Hide resolved
azure-devops/run_build.yml Outdated Show resolved Hide resolved
azure-devops/run_build.yml Show resolved Hide resolved
azure-devops/enforce-clang-format.cmd Show resolved Hide resolved
@StephanTLavavej StephanTLavavej merged commit 58c5c4d into microsoft:master Nov 5, 2019
@StephanTLavavej StephanTLavavej deleted the git_diff branch November 5, 2019 23:09
fengjixuchui added a commit to fengjixuchui/STL that referenced this pull request Nov 6, 2019
Make enforce-clang-format.cmd also run `git diff`. (microsoft#255)
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