Skip to content

[clang] Fix Dependency Scanning Test Failures Caused by deed6e90081889e851be7b6cfcdc6a04bbd142e5 #9805

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

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

qiongsiwu
Copy link

@qiongsiwu qiongsiwu commented Jan 7, 2025

It seems that deed6e9 accidentally added DepCollectorPPCallbacks twice, which led to the following 5 test case failures.

Clang :: Frontend/dependency-gen-phony.c
Clang :: Modules/dependency-skip-unused-modulemaps.m
Clang-Unit :: Tooling/./ToolingTests/DependencyScanner/ScanDepsReuseFilemanager
Clang-Unit :: Tooling/./ToolingTests/DependencyScanner/ScanDepsReuseFilemanagerHasInclude
Clang-Unit :: Tooling/./ToolingTests/DependencyScanner/ScanDepsReuseFilemanagerSkippedFile

This PR removes the duplicate and fixes the failing tests.

rdar://142333288

@qiongsiwu
Copy link
Author

@swift-ci please test

@qiongsiwu
Copy link
Author

@swift-ci Please test LLVM

@cyndyishida
Copy link

It looks like there are still some clangd unit tests failing, are those unrelated?

  Clangd Unit Tests :: ./ClangdTests/20/40
  Clangd Unit Tests :: ./ClangdTests/21/40
  Clangd Unit Tests :: ./ClangdTests/25/40

@cyndyishida cyndyishida self-requested a review January 8, 2025 17:41
@qiongsiwu
Copy link
Author

qiongsiwu commented Jan 8, 2025

Looking into the extra clangd failures. I cannot reproduce them locally yet, and it seems that the Linux and macOS CI runs are showing different clangd failures. The failures may be intermittent.

Linux (https://ci.swift.org/job/pr-apple-llvm-project-llvm-linux/482/console)

  Clangd Unit Tests :: ./ClangdTests/20/40
  Clangd Unit Tests :: ./ClangdTests/21/40
  Clangd Unit Tests :: ./ClangdTests/25/40

macOS (https://ci.swift.org/job/pr-apple-llvm-project-llvm-macos/478/console)

  Clangd Unit Tests :: ./ClangdTests/0/20
  Clangd Unit Tests :: ./ClangdTests/1/20
  Clangd Unit Tests :: ./ClangdTests/5/20

@qiongsiwu
Copy link
Author

qiongsiwu commented Jan 8, 2025

It seems that the clangd failures already exist before. For example #9803 's tests hit them as well. This PR does not really change their state. I cannot reproduce these failures locally on macOS.

@cyndyishida cyndyishida merged commit 2835f8f into swiftlang:next Jan 9, 2025
0 of 5 checks passed
@benlangmuir
Copy link

Note: this started failing again. It looks like the same merge issue was reintroduced in 44aa7a0 which merged a revert of ca2ab74. Fixing in #9851

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