Skip to content

Reactivate TableTest.test_TableColumn#1450

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swt-table-test
Apr 18, 2026
Merged

Reactivate TableTest.test_TableColumn#1450
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swt-table-test

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

@ptziegler ptziegler commented Apr 11, 2026

Reactivate TableTest.test_TableColumn

The test fails on Linux when running with Xvnc. Underlying reason seems to be that tree columns behave differently on Linux than on Windows.

When setHeaderVisible(true) is called and the shell is opened, the table column will take up the entire width of the shell, ignoring the values passed to tableColumn.setWidth(...). On Linux this corresponds to the methods:

  • gtk_tree_view_column_get_fixed_width
  • gtk_tree_view_column_get_width

Within this test, the second method is called because the shell is made visible for a short period while taking the screenshot, which internally causes gtk_size_allocate to be called. Given that this issue doesn't appear when executing the test locally, this seems to be a problem with the virtual desktop.

To avoid this problem, the test is no longer done with a shell, but a plain composite.

@ptziegler ptziegler added this to the 1.24.0 milestone Apr 11, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 11, 2026

Test Results

 2 720 files  ±0   2 720 suites  ±0   11h 9m 43s ⏱️ -59s
 7 018 tests ±0   6 970 ✅ ±0   47 💤  - 1  1 ❌ +1 
28 072 runs  ±0  27 873 ✅ +3  198 💤  - 4  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 5c75f68. ± Comparison against base commit ccda5c8.

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the swt-table-test branch 11 times, most recently from fd655e5 to 209925b Compare April 15, 2026 04:34
The test fails on Linux when running with Xvnc. Underlying reason seems
to be that tree columns behave differently on Linux than on Windows.

When `setHeaderVisible(true)` is called and the shell is opened, the
table column will take up the entire width of the shell, ignoring the
values passed to `tableColumn.setWidth(...)`. On Linux this corresponds
to the methods:

- gtk_tree_view_column_get_fixed_width
- gtk_tree_view_column_get_width

Within this test, the second method is called because the shell is made
visible for a short period while taking the screenshot, which internally
causes `gtk_size_allocate` to be called. Given that this issue doesn't
appear when executing the test locally, this seems to be a problem with
the virtual desktop.

To avoid this problem, the test is no longer done with a shell, but a
plain composite.
@ptziegler ptziegler merged commit 11a2693 into eclipse-windowbuilder:master Apr 18, 2026
6 of 8 checks passed
@ptziegler ptziegler deleted the swt-table-test branch April 18, 2026 17:10
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.

1 participant