Skip to content

Run CodeGeneration tests in CI #2171

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
Sep 18, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 8, 2023

With the migration of build-script.py to Swift, we accidentally dropped running the CodeGeneration tests. Re-enable them.

@ahoppen ahoppen requested a review from bnbarham September 8, 2023 16:40
@ahoppen
Copy link
Member Author

ahoppen commented Sep 8, 2023

@swift-ci Please test

Copy link
Contributor

@natikgadzhi natikgadzhi left a comment

Choose a reason for hiding this comment

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

Thank you for getting them back — I just recently thought about whether I should add tests for code generation when I work on them, and how they are triggered on CI — TIL.

@@ -24,9 +24,8 @@ struct Test: ParsableCommand, BuildCommand {
var arguments: BuildArguments

func run() throws {
try buildExample(exampleName: "ExamplePlugin")
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, and unrelated to the PR: why remove the buildExample step? Do we build in another command now? (Just learning about the scripts, and will read more — very likely that I'll stumble at the answer on my own in 5 minutes)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, we needed to build the example for the lit test, which I removed in #2160. I just forgot to remove buildExample in that PR.

"SWIFTPARSER_ENABLE_ALTERNATE_TOKEN_INTROSPECTION": "1",
]

try invokeSwiftPM(
Copy link
Contributor

Choose a reason for hiding this comment

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

This is neat!

@ahoppen ahoppen force-pushed the ahoppen/run-codegen-tests branch from 9bfe8f0 to e208fe5 Compare September 8, 2023 18:44
@ahoppen
Copy link
Member Author

ahoppen commented Sep 8, 2023

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/run-codegen-tests branch from e208fe5 to 0f66693 Compare September 13, 2023 18:47
@ahoppen
Copy link
Member Author

ahoppen commented Sep 13, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Sep 13, 2023

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Sep 14, 2023

swiftlang/swift#68505

@swift-ci Please test

With the migration of build-script.py to Swift, we accidentally dropped running the CodeGeneration tests. Re-enable them.
@ahoppen ahoppen force-pushed the ahoppen/run-codegen-tests branch from 0f66693 to 9dfc532 Compare September 14, 2023 15:51
@ahoppen
Copy link
Member Author

ahoppen commented Sep 14, 2023

swiftlang/swift#68505

@swift-ci Please test

@ahoppen ahoppen disabled auto-merge September 14, 2023 15:51
@ahoppen
Copy link
Member Author

ahoppen commented Sep 14, 2023

swiftlang/swift#68505

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Sep 16, 2023

swiftlang/swift#68505

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 5ff9344 into swiftlang:main Sep 18, 2023
@ahoppen ahoppen deleted the ahoppen/run-codegen-tests branch September 18, 2023 19:39
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.

4 participants