Skip to content

GH-38923: [GLib] Fix spelling#38924

Merged
kou merged 21 commits intoapache:mainfrom
jsoref:spelling-c_glib
Mar 8, 2024
Merged

GH-38923: [GLib] Fix spelling#38924
kou merged 21 commits intoapache:mainfrom
jsoref:spelling-c_glib

Conversation

@jsoref
Copy link
Copy Markdown
Contributor

@jsoref jsoref commented Nov 28, 2023

Rationale for this change

What changes are included in this PR?

Spelling fixes to c_glib/

Are these changes tested?

Are there any user-facing changes?

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
@jsoref jsoref requested a review from kou as a code owner November 28, 2023 13:42
@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #38923 has been automatically assigned in GitHub to PR creator.

@kou kou changed the title GH-38923:[GLIB] Fix spelling GH-38923: [GLib] Fix spelling Nov 28, 2023
Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

Thanks. We have many typos...

def test_diff
array = build_string_array(["Start", "Shutdown", "Reboot"])
other_array = build_string_array(["Start", "Shutdonw", "Reboot"])
other_array = build_string_array(["Start", "Shutdown_", "Reboot"])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
other_array = build_string_array(["Start", "Shutdown_", "Reboot"])
other_array = build_string_array(["Start", "Shutdown", "Reboot"])

@@ -1, +1 @@
-"Shutdown"
+"Shutdonw"
+"Shutdown_"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
+"Shutdown_"
+"Shutdown"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This didn't work. It's doing some sorting to an array. It was my initial correction and tests failed when I did it.

(I know it looks like I'm just fixing things randomly without testing stuff, but I really do try to get CI to pass before I make my initial PRs.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I took a look at this test again.
We should not change this because it's a test to detect difference of two arrays. The "Shutdonw" typo is for the difference.

Or we can use other entirely different word something like:

diff --git a/c_glib/test/test-array.rb b/c_glib/test/test-array.rb
index c03aecf17..4da641b20 100644
--- a/c_glib/test/test-array.rb
+++ b/c_glib/test/test-array.rb
@@ -141,12 +141,12 @@ class TestArray < Test::Unit::TestCase
 
     def test_diff
       array = build_string_array(["Start", "Shutdown", "Reboot"])
-      other_array = build_string_array(["Start", "Shutdonw", "Reboot"])
+      other_array = build_string_array(["Start", "Running", "Reboot"])
       assert_equal(<<-STRING.chomp, array.diff_unified(other_array))
 
 @@ -1, +1 @@
 -"Shutdown"
-+"Shutdonw"
++"Running"
 
       STRING
     end

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll take running.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Nov 28, 2023
@jsoref jsoref requested a review from kou December 5, 2023 02:34
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Mar 8, 2024
Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit 7e286dd into apache:main Mar 8, 2024
@kou kou removed the awaiting change review Awaiting change review label Mar 8, 2024
@github-actions github-actions bot added the awaiting merge Awaiting merge label Mar 8, 2024
@jsoref jsoref deleted the spelling-c_glib branch March 8, 2024 15:45
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 7e286dd.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 21 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GLib] Spelling errors identified by check-spelling

2 participants