Skip to content

[testing] Add missing REQUIRES: standalone_test #32314

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
Jun 11, 2020

Conversation

davezarzycki
Copy link
Contributor

No description provided.

@davezarzycki davezarzycki requested a review from gottesmm June 11, 2020 12:54
@davezarzycki
Copy link
Contributor Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit e5a5ab1 into swiftlang:master Jun 11, 2020
@davezarzycki davezarzycki deleted the pr32314 branch June 11, 2020 15:39
@finagolfin
Copy link
Member

I see no standalone_test defined anywhere, did you mean standalone_build?

@davezarzycki
Copy link
Contributor Author

I see no standalone_test defined anywhere, did you mean standalone_build?

Whoops. Yes. Sorry!

@davezarzycki
Copy link
Contributor Author

Do you have a pull request ready? Or do you need me to fix it?

@finagolfin
Copy link
Member

Also, since standalone_build is defined in test/lit.site.cfg.in, will it be passed to these validation tests? Could you explain what this requirement signifies?

@davezarzycki
Copy link
Contributor Author

There are two fundamental ways of building Swift:

  1. As a standalone project using pre-built LLVM/clang libraries (and headers) available somewhere.
  2. As a "unified build" where LLVM, clang, swift, etc are built together and build dependencies are integrated.

"standalone_build" means the former.

@finagolfin
Copy link
Member

finagolfin commented Jul 17, 2020

Is the "standalone build" ever built on the CI? If not, adding this requirement simply disables all these tests from the CI.

@davezarzycki
Copy link
Contributor Author

As of today, CI doesn't do unified builds.

But that doesn't matter. This test is effectively always disabled when it shouldn't be.

@finagolfin
Copy link
Member

I ask because one of these tests should have tripped because of my pull #32860, but it didn't. I'll fix this, but I'm not sure how if the test is never run even with standalone_build.

@finagolfin
Copy link
Member

I'll look into the CMake config for unified builds more and get back to you later. I thought the CI is doing unified builds, based on your description, but I'm not sure so I will check.

Let me know about that lit.site.cfg.in issue I mentioned above, whenever you get a chance.

@davezarzycki
Copy link
Contributor Author

CI uses the "build-script" which builds a bunch of projects serially/standalone. This makes it easy to build LLVM+clang optimized but with Swift unoptimized.

People that build "unified" are bypassing the build-script entirely

@finagolfin
Copy link
Member

I neglected to make clear that all the standalone_build tests you added appear to be disabled on the CI, not just these two with the wrong label. I downloaded the full CI log for the last successful smoke test from last night and checked, hence my confusion and further questions.

It appears there's something further wrong in the test setup than this pull and since you added that requirement, maybe you have some insight.

@finagolfin
Copy link
Member

OK, I think I have a fix for both problems, will submit a pull.

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