Skip to content
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

Add some documentation and consistency to use of info vs output stream #1060

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

jonahgraham
Copy link
Member

With some better Javadocs the cross referencing between IConsole and the UI aspects of the console is a little easier to follow.

This resolves #1059 in two parts:

  1. For Core Build System this update consistently uses info stream to show information messages and output stream to be stdout of launched build tool. This resolves the "Build Complete" appearing as the output color when doing clean (See screenshots in CMake Clean has inverted colors compared to build #1059)

  2. CBuildConfiguration.watchProcess(IConsole, IProgressMonitor) incorrectly passed the info stream as the output stream. Mostly this was used for the clean stage of builds. This resolves the CMake output like ("Cleaning all built files...") appearing as the info color when doing clean (See screenshots in CMake Clean has inverted colors compared to build #1059)

Fixes #1059

Here are some after screenshots, see #1059 for the before screenshots:

image

image

With some better Javadocs the cross referencing between IConsole
and the UI aspects of the console is a little easier to follow.

This resolves eclipse-cdt#1059 in two parts:

1. For Core Build System this update consistently uses info stream to
show information messages and output stream to be stdout of launched
build tool. This resolves the "Build Complete" appearing as the output
color when doing clean (See screenshots in eclipse-cdt#1059)

2. CBuildConfiguration.watchProcess(IConsole, IProgressMonitor) incorrectly
passed the info stream as the output stream. Mostly this was used for
the clean stage of builds. This resolves the CMake output like ("Cleaning
all built files...") appearing as the info color when doing clean (See
screenshots in eclipse-cdt#1059)

Fixes eclipse-cdt#1059
@jonahgraham jonahgraham added this to the 12.0.0 M2 milestone Jan 28, 2025
Copy link

Test Results

   600 files   -    34     600 suites   - 34   13m 29s ⏱️ - 23m 6s
10 206 tests  - 1 217  10 183 ✅  - 1 097  23 💤  - 120  0 ❌ ±0 
10 244 runs   - 1 217  10 221 ✅  - 1 097  23 💤  - 120  0 ❌ ±0 

Results for commit c3c5607. ± Comparison against base commit 62faf42.

This pull request removes 1217 tests.
org.eclipse.cdt.debug.gdbjtag.core.tests.jtagdevice.GDBJtagDeviceContributionTest ‑ testGdbJtagDeviceContribution
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdb]
org.eclipse.cdt.debug.gdbjtag.core.tests.launch.GDBJtagLaunchTest ‑ testGdbJtagLaunch[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithQuotes[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSpecialSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdb]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithSymbols[gdbserver]
org.eclipse.cdt.tests.dsf.gdb.tests.CommandLineArgsTest ‑ testSettingArgumentsWithTabs[gdb]
…

@jonahgraham
Copy link
Member Author

This pull request removes 1217 tests.

Hmm. A side of effect of making this comment work is that it compares to the last build of HEAD. However since we run different numbers of tests depending on whether debug tests have been suppressed we get this unexpected warning about removing tests. The tests were not removed, they were just not run this time.

Copy link
Contributor

@betamaxbandit betamaxbandit left a comment

Choose a reason for hiding this comment

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

LGTM
Neat. Good find and +1 for consistency and with the extra javadoc explanation!

@jonahgraham jonahgraham merged commit 84d99f2 into eclipse-cdt:main Jan 28, 2025
5 checks passed
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.

CMake Clean has inverted colors compared to build
2 participants