aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-09-20scripts/get-target-branch: strip trailing bracketsTrevor Gamblin
get-target-branch was not stripping trailing square brackets. Modify the strip call when a branch is detected so that it does. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-20scripts/get-target-branch: refactorTrevor Gamblin
get-target-branch would only report master as the target branch for any patch in its previous form. Refactor the script so that it correctly parses branch names from the subject line, and more simply falls back to master if no branch matches are detected. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-18python3-platformdirs: upgrade 3.9.1 -> 3.10.0Trevor Gamblin
Upgrade to match meta-python version. See: https://git.openembedded.org/meta-openembedded/commit/?id=a38f430cfda457d32fc7b04eab22ebec3f30305b Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-18python3-coverage: upgrade 7.2.7 -> 7.3.0Trevor Gamblin
Update to be in sync with meta-openembedded. See: https://git.openembedded.org/meta-openembedded/commit/?id=49b9f848a93083bd2b1b5ecfcf4646564d610c21 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-15python3-dill: remove old versionTrevor Gamblin
This was left behind during a previous upgrade. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-15patchtest: remove references to patchtest-oeTrevor Gamblin
Now that patchtest-oe's contents are merged to oe-core, we don't need to reference the patchtest-oe repo or cloned instances of it, so remove them. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-15patchtest/scripts: remove unused scriptsTrevor Gamblin
Remove five scripts that are no longer needed. - test-mboxes is obsolete now that the patchtest script can target a directory of patches - post-summary is not relevant with the current Patchwork instance - guest and host scripts are obsoleted by new patchtest workflow - any-fail relies on stdin workflow that is no longer used Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-13README.md: Update installation and usage infoTrevor Gamblin
- Add installation requirements and setup steps - Provide basic instructions for using get-latest-series - Describe patchtest usage in 'host' mode - Mark 'guest' mode section as 'Under Construction' Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-13requirements.txt: Add git-pwTrevor Gamblin
git-pw is required for scripts such as get-latest-series to work, so add it to the requirements list. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-13README.md: Rename from README, updateTrevor Gamblin
Update to use markdown syntax and replace old URLs with current versions. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-13patchtest: allow directory instead of single patchTrevor Gamblin
The patchtest script requires a patch argument, but cannot handle a directory or list of files. Add a mutual exclusion group in the argument parser that allows a directory or a single patch, then make patchtest iterate over the list of resulting files (which will consist of a single element if only one patch is provided). Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-11patchtest: remove poll-events, fetch-mboxesTrevor Gamblin
Both of these scripts rely on functionality that is no longer available in patchwork. The get-latest-series script added to patchtest in 2b397c3 is the replacement. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-07patchtest: Remove stdin patch handlerTrevor Gamblin
The legacy PatchTestStdIn class and associated functions were intended to allow patches to be sent from stdin, but the logic causes issues with automation of selftests and other non-interactive workflows. Remove the code in the patchtest script, and strip out the PatchTestStdIn class since it is then no longer needed. Also rename the PatchTestArgs class to PatchTestInput, since the original PatchTestInput class isn't needed to wrap PatchTestArgs alone and provides the same functionality anyway. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-07patchtest: Print message if not using tty deviceTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-09-06requirements.txt: update minimum pyparsing versionTrevor Gamblin
While testing on Ubuntu systems it was noticed that there was a difference in selftest results, notably the SignedOffBy and PatchSignedOffBy tests. After some debugging, it was narrowed down to this error: |Test error: test_patch_upstream_status (unittest.loader._FailedTest) |(<class 'ImportError'>, ImportError('Failed to import test module: |test_patch_upstream_status\nTraceback (most recent call last):\n File |"/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path\n |module = self._get_module_from_name(name)\n File |"/usr/lib/python3.10/unittest/loader.py", line 377, in |_get_module_from_name\n __import__(name)\n File |"/workspace/yocto/patchtest-oe/tests/test_patch_upstream_status.py", |line 12, in <module>\n class PatchUpstreamStatus(base.Base):\n File |"/workspace/yocto/patchtest-oe/tests/test_patch_upstream_status.py", |line 14, in PatchUpstreamStatus\n upstream_status_re gex = |pyparsing.AtLineStart("+" + "Upstream-Status")\nAttributeError: module |\'pyparsing\' has no attribute \'AtLineStart\'\n'), <traceback object at |0x7f934eb159c0>) Comparing the version of pyparsing on the Ubuntu system (2.4.7) with a Fedora 38 system (3.0.9) explained the error. To avoid this problem in the future, make sure that pyparsing is pinned to 3.0.9 or newer when installing the requirements. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-25patchtest: refactor and simplify modulesTrevor Gamblin
The current layout of patchtest is inconsistent in module and class naming, as well as inter-dependencies. Start making the code more maintainable by: - Simplifying module names to remove namespacing - Add namespacing to the classes themselves - Make imports of classes explicit, instead of using aliases like "pti" Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-25get-latest-series: add scriptTrevor Gamblin
As a first step in replacing the non-functional poll-events script, add a new one that uses git-pw and the date command to download patch series by ID, with configurable time intervals, maximum number of series, download locations, log files, and Patchwork projects to query. Use a log file (defined as $SERIES_TEST_LOG in the script) to track previously-consumed series so that they don't get tested multiple times. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-17patchtestdata.py: move to lib directoryTrevor Gamblin
There's no real reason to keep the patchtestdata module in the root directory given its similarity to the modules already present in lib. Move it there to keep the repo more organized. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pylint: Add Upstream-Status in local patchTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-isort: upgrade RDEPENDSTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-tomlkit: upgrade 0.11.8 -> 0.12.1Trevor Gamblin
Changelog: https://github.com/sdispater/tomlkit/releases Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-xdist: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-timeout: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-forked: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-mock: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-cov: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-benchmark: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pytest-asyncio: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-pycurl: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-process-tests: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-py-cpuinfo: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-platformdirs: upgrade 3.5.1 -> 3.9.1Trevor Gamblin
Changelog: https://github.com/platformdirs/platformdirs/releases Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-fields: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-execnet: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-dill: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-coverage: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-covdefaults: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-astroid: upgrade to 2.15.4 -> 2.15.6Trevor Gamblin
Changelog: https://github.com/pylint-dev/astroid/releases Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-aspectlib: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-appdirs: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-08-11python3-tornado: add recipeTrevor Gamblin
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-06-12requirements.txt: Add pylint, pyparsing, unidiffTrevor Gamblin
Add some dependencies that patchtest now relies on to requirements.txt. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-24core-image-patchtest: Add safe git directoriesTrevor Gamblin
patchtest's method of mounting a shared directory into the guest image means that the associated content may not be owned by the image's user. Add /home/patchtest/openembedded-core and /home/patchtest/openembedded-core/bitbake to the patchtest user's .gitconfig so that it can still run tests if the provided repo is owned by someone else. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-22python3-pylint: Add missing patch filesTrevor Gamblin
These were mistakenly omitted during the python3-pylint upgrade and are required for the new version to build, and to run ptests successfully. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-tomlkit: add recipeTrevor Gamblin
python3-pylint requires python3-tomlkit, so copy the recipe from meta-python to avoid requiring that layer for patchtest. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-platformdirs: add recipeTrevor Gamblin
python3-pylint requires python3-platformdirs, so copy it from meta-python to avoid requiring that layer for patchtest. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-mccabe: add recipeTrevor Gamblin
python3-pylint requires python3-mccabe, so copy it from meta-python to avoid requiring that layer for patchtest. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-dill: add recipeTrevor Gamblin
python3-pylint requires python3-dill, so copy it from meta-python to avoid requiring that layer for patchtest. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-wrapt: upgrade 1.10.10 -> 1.15.0Trevor Gamblin
Copy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
2023-05-17python3-unidiff: upgrade 0.5.4 -> 0.7.5Trevor Gamblin
Copy the recipe from meta-python to handle the upgrade, so that patchtest can build it without requiring the layer. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>