swift icon indicating copy to clipboard operation
swift copied to clipboard

[Diagnostics-Qol]: Update c_style_for_stmt_removed error string

Open saehejkang opened this issue 10 months ago • 5 comments

Changes Made

  • Update the c-style-for-stmt-removed error string
  • Updated appropriate tests in the /test directory.

Resolves #73246

saehejkang avatar Apr 27 '24 21:04 saehejkang

Just had some clarifications when running tests

  1. When do you need to rebuild dependencies when running tests?
  2. This was just updating an error string so does that warrant a rebuild?
  3. What steps should be taken with changes like this (what tests to run)?

saehejkang avatar Apr 27 '24 21:04 saehejkang

When do you need to rebuild dependencies when running tests?

To put is simply, usually, the products you build to compile, debug and verify your changes are the exact same and only products you want to build before running associated tests. If build times are not a problem, run-test will build test dependencies for you. Otherwise, you learn them along the way. I prefer using lit or skipping the build phase in run-test (--build skip) because run-test is poorly optimized for small subsets of tests — it wastes time rebuilding unrelated stuff.

What steps should be taken with changes like this (what tests to run)?

What I do is search for occurrences of the old diagnostic message in the test suite, update them, and make sure those tests pass.

AnthonyLatsis avatar Apr 27 '24 23:04 AnthonyLatsis

@swift-ci please smoke test Linux

AnthonyLatsis avatar Apr 27 '24 23:04 AnthonyLatsis

Would be nice to have a tag in the commit title too.

AnthonyLatsis avatar Apr 27 '24 23:04 AnthonyLatsis

@swift-ci Please smoke test

LucianoPAlmeida avatar May 04 '24 23:05 LucianoPAlmeida

@LucianoPAlmeida could you run the ci again?

saehejkang avatar May 17 '24 00:05 saehejkang

I suggest waiting for an approval from a code owner before rerunning the macOS smoke test. This is just a diagnostic reword and we know from the other successful smoke tests that all the right updates were made, so if the code owners happen to request amendments, we will have run the test for nothing.

AnthonyLatsis avatar May 17 '24 02:05 AnthonyLatsis

@bnbarham ping

AnthonyLatsis avatar May 17 '24 02:05 AnthonyLatsis

LGTM. Thanks @saehejkang! (and @AnthonyLatsis for the ping!)

bnbarham avatar May 17 '24 03:05 bnbarham

@swift-ci please smoke test macOS platform

bnbarham avatar May 17 '24 03:05 bnbarham