Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of raising exceptions entirely | Raymond Li | 2024-03-28 | 1 | -1/+1 |
| | | | | In favor of just returning status for uniform behavior | ||||
* | Updates on Value nodes | Mats Wichmann | 2024-03-12 | 1 | -3/+2 |
| | | | | | | | | | | | | | | Some doc changes. E2E tests cleaned up a bit. Before merge: TODO: second half of manpage example doesn't work. Also: should test give SCons.Node.Value.Value as factory, or just Value? (remove new import if the latter). SCons.Node.Value.Value and SCons.Environment.Value are not the same thing. Signed-off-by: Mats Wichmann <mats@linux.com> | ||||
* | Only create new workers when current workers are saturated with jobs | Andrew Morrow | 2024-02-13 | 1 | -1/+2 |
| | |||||
* | Only add worker threads as necesary | Andrew Morrow | 2024-02-08 | 1 | -13/+22 |
| | |||||
* | Partially revert "cache push on any thread" | Andrew Morrow | 2024-02-05 | 1 | -0/+3 |
| | | | | | This partially reverts commit 8a6b5e4b12254afbba8cf4aadb78300a92a42de7 to restore `Node.cached` field. | ||||
* | cache push on any thread | Andrew Morrow | 2024-02-05 | 1 | -5/+2 |
| | |||||
* | Run legacy parallel test case in legacy sched mode | Andrew Morrow | 2024-01-24 | 1 | -0/+2 |
| | |||||
* | Partial Revert "Fix JobTests.py" | Andrew Morrow | 2024-01-24 | 1 | -0/+44 |
| | | | | This reverts commit d932ba3700305f82ffafba6137da99b3145b82d2. | ||||
* | review feedback: legacysched to legacy_sched | Andrew Morrow | 2024-01-20 | 2 | -4/+4 |
| | |||||
* | Fix JobTests.py | Andrew Morrow | 2024-01-19 | 1 | -44/+1 |
| | |||||
* | Use main thread as worker if -j1 with NewParallel | Andrew Morrow | 2024-01-19 | 1 | -9/+11 |
| | |||||
* | wip | Andrew Morrow | 2024-01-19 | 2 | -7/+11 |
| | |||||
* | No locks needed for -j1 with NewParallel | Andrew Morrow | 2024-01-19 | 1 | -3/+27 |
| | |||||
* | fixup | Andrew Morrow | 2024-01-19 | 1 | -1/+1 |
| | |||||
* | Let the main thread participate in NewParallel | Andrew Morrow | 2024-01-19 | 1 | -1/+2 |
| | |||||
* | Always use NewParallel with tm_v2 flag | Andrew Morrow | 2024-01-19 | 1 | -24/+14 |
| | |||||
* | fixup | Andrew Morrow | 2024-01-19 | 1 | -28/+0 |
| | |||||
* | threading is always available | Andrew Morrow | 2024-01-19 | 1 | -460/+449 |
| | |||||
* | "Modernize" to Python 3.6 via tool | Mats Wichmann | 2023-08-04 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | $ pyupgrade --py36-plus $(<filelist) Here's mostly what it's done: - No more 'stringliteral'.encode('utf-8'): now b'stringliteral' - No more unicode literals - the default open mode is 'r', leaves out if default - some f-string conversions (if shorter) - catch OSError instead of subclasses - no more mention of "object" - generator expression instead of list comp. when safe - a few tests had a shebang but actually began with blank line - remove coding: utf-8 comment, per pep 3120 this is the default now Manually - if a file in test/ was modified, then did the copyright header conversion. Signed-off-by: Mats Wichmann <mats@linux.com> | ||||
* | Followon to PR #4348: more bool fixes | Mats Wichmann | 2023-06-16 | 1 | -11/+11 |
| | | | | | | | | | | | | | | Manually fixed up some things related to bool, e.g. simple functions which just did "return 1" were interpreted by the tool as returning int, when bool was really the intent. Functions/methods named like "is*", "has*", "exists", "rexists" (and others) are now pretty consistently marked as returning bool. A couple of minor alignments of branched definitions, and a couple of docstring adjustments made. If Tools which had old heading style were touched, they got the new style. Signed-off-by: Mats Wichmann <mats@linux.com> | ||||
* | Drop dead code from unit tests | Mats Wichmann | 2023-05-22 | 1 | -9/+0 |
| | | | | | | | | | | Remove dead code: some mocked classes in unit tests had methods which have been removed from the Node class they're mocking, there's no need to shadow those any more as there are no callers. The methods are depends_on (base functionality removed in 2005 ) and is_pseudeo_derived (base functionality removed in 2006). Signed-off-by: Mats Wichmann <mats@linux.com> | ||||
* | Add some cheap return and parameter annotations | Mats Wichmann | 2023-05-01 | 4 | -127/+127 |
| | | | | | | | | | | | | | | | | | Use: https://github.com/JelleZijlstra/autotyping to add "safe" return annotations. Where a parameter has a default value that is an obvious scalar type (bool, int, str, etc.) add those annotations as well. Also fixed two small bugs that popped up when sanity-checking with mypy. One in FortranCommon, where a return had been previously annotated to be a tuple of Action, which should be ActionBase - Action is the factory function, not the base class. The other was a typo in the error raised in _add_cppdefines - the message was formatted with the value of "define" which should have been "defines". Signed-off-by: Mats Wichmann <mats@linux.com> | ||||
* | [ci skip] Add pylint annotation and comment regarding importing GetOption in ↵ | William Deegan | 2022-12-05 | 1 | -0/+4 |
| | | | | a method instead of at top of file. (Thanks mwichmann for providing feedback and pylint syntax) | ||||
* | [ci skip] Fix formatting for which versions introduced which experimental ↵ | William Deegan | 2022-12-04 | 1 | -0/+1 |
| | | | | features | ||||
* | modernize JobTests to just use unittest.main(), fix JobTests to have a ↵ | William Deegan | 2022-12-04 | 2 | -28/+34 |
| | | | | reasonable value for OptionsParser.values.experimental, so Jobs doesn't crash when referencing it and getting a None instead of an iterable | ||||
* | Added --experimental=tm_v2 which switches to use Andrew Morrow's new ↵ | William Deegan | 2022-12-04 | 1 | -3/+4 |
| | | | | ParallelJob implementation. WHich should scale much better for highly parallel builds | ||||
* | Merge branch 'master' of github.com:SCons/scons into ↵ | William Deegan | 2022-12-04 | 2 | -51/+119 |
|\ | | | | | | | add_logging_to_new_parallel_job | ||||
| * | Added test for failing to unlink cached target files | William Deegan | 2022-12-03 | 1 | -3/+56 |
| | | |||||
| * | remove unused display and change text on warning per PR review | William Deegan | 2022-12-01 | 1 | -4/+1 |
| | | |||||
| * | improve changes notes and use SCons warning | Daniel Moody | 2022-12-01 | 1 | -1/+2 |
| | | |||||
| * | Added error message when failure to delete partial cache retrieval occurs. | Daniel Moody | 2022-12-01 | 1 | -2/+4 |
| | | |||||
| * | Merge pull request #4251 from bdbaddog/taskmaster_trace_to_python_logging | William Deegan | 2022-10-26 | 1 | -46/+61 |
| |\ | | | | | | | Fixed taskmaster trace tests. | ||||
| | * | Fixed taskmaster trace tests. Previously there was an extra line at the end ↵ | William Deegan | 2022-10-26 | 1 | -46/+61 |
| | | | | | | | | | | | | of the file. It's no longer there. Added TestCommon.detailed_diff() function which can be used to diff large text blobs expected vs actual | ||||
* | | | Added TestCommon.must_match_file() function. Updated test for ↵ | William Deegan | 2022-12-04 | 1 | -14/+15 |
| | | | | | | | | | | | | --taskmastertracefor (NewParallel/LegacyParallel Jobs). Now uses golden files to compare expected output and output files | ||||
* | | | Fix SCons/Taskmaster/JobTests.py test | William Deegan | 2022-11-17 | 1 | -3/+3 |
| | | | |||||
* | | | Remove extraneous XXX from NewParallel logging. Added SCONS_NEW_PARALLEL ↵ | William Deegan | 2022-11-17 | 1 | -14/+18 |
| | | | | | | | | | | | | shell environment variable to turn on NewParallel. This is a temporary mechanism to enable NewParallel | ||||
* | | | logging working in NewParallel, but changed to be default. Need to figure ↵ | William Deegan | 2022-11-16 | 1 | -20/+17 |
| | | | | | | | | | | | | out how to switch from one to the other | ||||
* | | | Initial logic to add logging to ExperimentalParallel job class. Not quite ↵ | William Deegan | 2022-10-27 | 2 | -13/+51 |
|/ / | | | | | | | working | ||||
* | | Merge pull request #4222 from acmorrow/new-parallel | William Deegan | 2022-10-24 | 1 | -7/+271 |
|\ \ | |/ |/| | Implement new parallel scheduler | ||||
| * | [ci skip] Resolve outstanding pep8 errors (fix sider complaints and more) | William Deegan | 2022-10-21 | 1 | -12/+13 |
| | | |||||
| * | Restore original Parallel as the default and rename new parallel as experimental | Andrew Morrow | 2022-10-13 | 1 | -15/+14 |
| | | |||||
| * | Implement new parallel scheduler | Andrew Morrow | 2022-10-13 | 1 | -1/+265 |
| | | |||||
* | | [ci skip] Fix Typo | William Deegan | 2022-10-23 | 1 | -1/+1 |
| | | |||||
* | | [ci skip] address sider complain on call to DispatchingFormatter() | William Deegan | 2022-10-23 | 1 | -3/+3 |
| | | |||||
* | | Address style comment on cal to DispatchingFormatter() from mwichmann. Good call | William Deegan | 2022-10-23 | 1 | -2/+3 |
| | | |||||
* | | [ci skip] Fix sider/PEP8 complaints | William Deegan | 2022-10-23 | 2 | -25/+42 |
| | | |||||
* | | Migrate Taskmaster tracing to use python logging | William Deegan | 2022-10-22 | 2 | -52/+115 |
|/ | |||||
* | move Taskmaster and Jobs to SCons.Taskmaster | William Deegan | 2022-10-12 | 4 | -0/+3329 |