1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
Commit graph

46 commits

Author SHA1 Message Date
Jonah Graham
07fcd8ff41
Remove backport from CDT releng (#1089)
It was useful when we were maintaining two branches, but
now it causes numerous false negatives in PRs

Reverts https://github.com/eclipse-cdt/cdt/pull/849
2025-02-17 09:51:55 -05:00
Jonah Graham
11dfaa4c0b Try automatically re-running failed tests
This will try to rerun failed tests up to three times.
The side effect is that a very broken test run will take much
longer to complete, but it is hoped for those few
https://github.com/eclipse-cdt/cdt/labels/flakytests in the system
this will resolve the issue.

Note this is applied only to the GitHub actions run, not to Jenkins
run where we build releases from. Ideally we don't want to do that
there.

In a future commit we can consider removing flakyTest from -DexcludedGroups
too.

See [surefire docs](https://maven.apache.org/surefire/maven-surefire-plugin/examples/rerun-failing-tests.html)
for details.
2025-01-24 14:04:47 -05:00
Jonah Graham
e6cac160f4 Allow a little more time for tests to run
The DSF-GDB tests themselves can take an hour or so.

Part of #816
2025-01-24 14:04:47 -05:00
Jonah Graham
b1e0121177 Use most recent Ubuntu when running tests
The combination of gcc 9.4 and gdb 9.2 in Ubuntu 20.04 have a few
minor test issues that seem to be bugs in gdb that have been since
fixed.

Part of #816
2025-01-24 14:04:47 -05:00
Jonah Graham
c5cc700a2d
Check that all xml files in CDT are well formed (#1053) 2025-01-22 16:38:40 -05:00
Jonah Graham
5667224c61
Run DSF-GDB tests when releng may have changed (#1042)
On a recent update to the target platform, the DSF-GDB tests
did not run because none of the changes matched the dsf
filter. Going forward, include running DSF tests when any
releng changes happen.

This replaces commit 8d0642568c. That commit ran the tests
all the time, which was too slow.

Part of #1037
2025-01-17 12:08:39 -05:00
Jonah Graham
8d0642568c Run DSF-GDB tests all the time
Part of #1037
2025-01-16 14:57:42 -05:00
Jonah Graham
45de3f3d77 Save all log files
When some types of failures happen, such as that in #1037, a log
file is created, so save all .log files as artifacts.

Part of #1037
2025-01-16 14:57:42 -05:00
Jonah Graham
957bb48267
Update to latest versions of build tools (#1036)
This is a follow-up to #986 where I missed this version update.
2025-01-16 18:56:24 +00:00
Jonah Graham
2efeaae713
Shorten the name of the licensing check (#1032)
This helps it fit in the UI space GitHub gives it

Part of #1002
2025-01-16 11:08:47 -05:00
Jonah Graham
751b031f09
Revert "workaround test results appearing in incorrect spot" (#1031)
This reverts commit ae3aebcf7f.

Part of #1002
2025-01-15 21:47:14 -05:00
Jonah Graham
ae3aebcf7f workaround test results appearing in incorrect spot
Part of #1002
2025-01-15 17:33:40 -05:00
Jonah Graham
6a60995312
Update path to dash-licenses (#1023)
When Eclipse Dash got moved to its own org, the path the shared
workflow needed to be updated. This commit does that

Part of #1002
2025-01-15 16:16:56 -05:00
Jonah Graham
9ec6c531e5 Correct location of event.json for reporting results
Part of #1002
2025-01-15 16:10:59 -05:00
Jonah Graham
47ecc78979
Use event file to line up PR build and reporting (#1026)
Part of #1002
2025-01-15 15:35:33 -05:00
Jonah Graham
1b0fcf3e4b Revert "Experiment to include full debug info"
Part of #1002
2025-01-15 14:39:41 -05:00
Jonah Graham
069209d474 Experiment to include full debug info
Part of #1002
2025-01-15 14:23:28 -05:00
Jonah Graham
9aa3144840 Generate more of the documentation with asciidoc and automate more
- Migrate all getting_started from html to adoc
- Document (in README.md) notes on migrating html to adoc
- Reorganize generation of adoc slightly so that
  - all directories can be generates at once
  - output suffix changed to htm so that migrated files
    exist at the same URL on help.eclipse.org
- Add generation to the cleanliness checks to ensure that the
  html matches adoc
- Manage the adoc headers with a script as that is a large section
  of copy-pasted code on each adoc file (see README + adoc-headers.txt)
- Move maven version info to pluginManagement (consistency with other
  maven plug-ins)
- New profile "asciidoc-auto-refresh" which will auto build the
  files as edited.

Prerequisite of #992
2025-01-14 13:05:53 -05:00
Jonah Graham
39ee2eded4
Update to latest versions of build tools (#986)
Beta versions of maven plugins are omitted from this
upgrade.

A new version of Tycho brings in an update ECJ which means some
of the class files are different, hence the need to bump versions
of bundles too.

A new calendar year brings an update to Copyrights
2025-01-06 20:37:10 -05:00
Jonah Graham
c52f02bd1c Update images to Dockerfiles from commit dfdc174b6d 2024-12-28 10:48:45 -05:00
Jonah Graham
dfdc174b6d Update and refactor Dockerfiles to newer Ubuntu
The docker images all have new, simpler names and use Ubuntu 20.04
(instead of 18.04) as their base.

A few new tools have been added, specifically what is needed for:

- Linux on RISC-V - see #980
- Winodows on ARM - see #969

Fixes #976
2024-12-28 10:48:30 -05:00
Jonah Graham
97f3d9a48c
Add support for backport command (#849)
Fixes https://github.com/eclipse-cdt/cdt/issues/842#issuecomment-2185102917
2024-06-28 23:18:00 +00:00
Jonah Graham
c9fa638d3d Update images to Dockerfiles from commit 46e37c6d22 2024-06-23 17:45:59 -04:00
Jonah Graham
46e37c6d22 Use CDT's container to run all code cleanliness checks
We need a new docker container for GitHub that runs as the
same uid that GitHub actions uses so permissions all work
correctly.
2024-06-23 17:41:16 -04:00
Jonah Graham
0568568c33 Change standalone debugger to no longer limit number of bundles
The maintenance of having a streamlined standalone debugger that
starts as fast as possible is no longer possible. See for
example #591 - therefore when using standalone debugger, use
the same sets of plug-ins/features as the product it is installed
in uses. The side effect is that the standalone debugger in this
use case will start slower and extra "stuff" will be present in
this UI.

For people just building the standalone debugger, provide a minimum
feature set. This will be many more bundles than before, but
should still provide a reasonably small set that starts well.

This simplification also includes removing the the duplicates set
of CDT docs (debug/org.eclipse.cdt.debug.application.doc). These
provided a simplified version of CDT's documentation targetted
at just standalone debugger. However there are a few problems related
to this duplication:

- The two sets of docs were not kept in sync
- The standalone docs appear in the online help, leading to
  duplicated entries
- With the config.ini changes above, there is no way to exclude
  the main docs in the standalone case, so remove the duplicate

A number of directly related clean-ups are included too:

- Remove the `ConfigGenerator.java` that stopped being referenced
  in PR #761
- Complete the removal of `build-standalone-debugger-rcp` profile
  that was started in #761. There is a small drawback to not having
  this profile, the standalone debugger is very slow to build
  compared to the rest of CDT. If this becomes a problem, restoring
  this profile along with the changes made in #761 is reasonable.
- bring debug.product's licenses up to date
- modernize command line args to eclipse when using debug.product

Fixes #781
2024-05-12 16:12:17 -04:00
Alexander Fedorov
88355ecc48 [#657] CDT cannot be built on Java 21 due to security manager changes
* Switch CI to Java 21
* Remove config generation for debug application
* Remove `org.eclipse.osgi.services` from `proxy.server` product
* Remove `org.eclipse.osgi.services` from
`org.eclipse.cdt.debug.application.product` product
* Move `org.eclipse.cdt.debug.application.product` from profile to
general part

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2024-04-19 22:16:40 +03:00
Jonah Graham
48df0ae2dc
Update apt before trying to install in GHA workflows (#586)
Fixes https://github.com/eclipse-cdt/cdt/pull/581#issuecomment-1752771968
2023-10-09 19:29:15 -04:00
Jonah Graham
6d4e8ededc Stop checking baseline-compare-and-replace in build and test workflow
This is checked in the code cleanliness workflow and by failing the
main build here causes the tests not to run and the tests are more
important. Similar to the new api-baseline-check that doesn't
run in the main workflow
2023-08-17 09:07:51 -04:00
Jonah Graham
2c3aaf89a1 Update to Tycho 4.0.1
The error handling in Tycho 4 identifies when bundles are listed
in category.xml but not available. The removed bundles were
not in the output, and with this change the error is resolved
in the build.

Updated setting for maven enforcer to match Tycho requirements.
2023-08-16 15:55:55 -04:00
Jonah Graham
f083a4a203 Split check code cleanliness into two build steps
A while ago we made the "Make sure all versions have been bumped
appropriately compared to the baseline" output to another file
to make it clearer. This refactor splits it up into different
build steps instead so that I don't have to open an additional
log file.
2023-08-16 15:04:39 -04:00
Jonah Graham
bb8ffa7b09
Make GitHub issue template more relevant (#468)
The old template was the default for GitHub, but it was off the mark
a little for some aspects. This change hopes to make the template
more useful
2023-07-21 15:43:56 -04:00
Alexander Fedorov
7cd76eeeca
[#385] Employ Eclipse Dash license check (#386)
Add yml configuration to check licenses

Fixes #385

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-04-30 10:35:09 +03:00
Alexander Fedorov
6d426dc26f Employ dependabot for CDT repository #363
Add dependabot config

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-04-13 13:26:28 +03:00
Umair Sair
e8f17beeb5
Bug 528145 - Breakpoints are not working with remote attach launch (#336)
Looking at the logs, it seems that the regression is caused at 8bec791
where support for multi-process was added. We removed breakpoints
tracking support from final launch sequence and moved it to debug new
process and attach to process logic but none of these are run for remote
attach launch, hence breakpoint tracking is not started for remote
attach launch.

To fix the problem, IGDBProcesses.attachDebuggerToProcess(..) is updated
to handle remote attach launch as well instead of final launch sequence
handling it.

This commit is created after reverting 7bddb5f and 96839a0 which is the
older fix done to fix this issue and the other commit was to fix the
regression caused by the old fix.

The problem with older fix was that for non-stop mode, attach to process
was not working for remote launches when there is already a process
being debugged. Note that to use this feature, gdbserver should be
started with --multi option.

* Revert "Bug 580259: Not all remote session have a connected process"

This reverts commit 96839a029d.

* Revert "Bug 528145 - Attach debugger to a gdbserver remote session"

This reverts commit 7bddb5f4cb.
2023-04-10 18:32:11 -04:00
Jonah Graham
bc0baaeb3d Run Workflows on all branches and PRs 2023-03-20 09:49:44 -04:00
Jonah Graham
c18d06e84d Upgrade to Tycho 3.0.3 (latest)
Part of #320
See also #308
2023-03-14 14:02:47 -04:00
Jonah Graham
6776f6a1ee Fix maven at 3.8.7
Until we update Tycho to 3.0.3+ we use the older Maven

Thanks to @ghentschke for figuring this out in
f7761791be

Fixes #308
2023-03-06 20:24:55 -05:00
Jonah Graham
d4c87cef72 Run workflows on CDT 11.1 branch 2023-03-06 14:11:48 -05:00
Jonah Graham
f8915da90f Run all workflows on CDT 11 branch too 2022-12-09 12:38:28 -05:00
Jonah Graham
381f9ae080 Use Ubuntu that contains GDB 10
Until we are ready for GDB 12 in the testsuite, run the GHA
checks against GDB 10 by chaning base OS to Ubuntu 20.04
instead of latest (which recently changed to 22.04)

Worksaround #210
2022-12-09 10:02:56 -05:00
Jonah Graham
5c1f041c6d Add a 90 minute timeout on GitHub actions (instead of 6 hour one) 2022-11-21 11:24:43 -05:00
Jonah Graham
939da0a445 Provide Issue and PR templates
Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
d5620689b5 Enable the profile in the GH Actions to verify standalone builds
Follow up from c1269a9990
2022-10-25 22:29:07 -04:00
Jonah Graham
56ee2c3bb1 DSF-GDB tests in GitHub Actions
- Fix the running so that the correct gdb is used.
- Only run DSF tests if dsf directories have been modified
- Default to using gdb,gdbserver on the PATH when running
  tests
- Remove double reporting of test results
2022-10-10 08:44:28 -04:00
Jonah Graham
9a22ad7097 Add GitHub actions to Build and Test CDT 2022-10-09 16:24:41 -04:00
Jonah Graham
06c8b01d83 GitHub Action for Code Cleanliness Check
This commit runs GitHub actions for code cleanliness.
Because this includes compare and replace build,
this verifies that the commit is buildable and
clean.

The natives are not rebuilt here (yet) because
the GitHub actions runner does not have the
cross compiler tools installed.

Part of migration to GitHub - Issue #32
2022-10-09 12:14:53 -04:00