binman: Check code-coverage requirements
cover binman: Check code-coverage requirements
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test cases
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: Drop GetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check in CheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for Binman
.azure-pipelines.yml | 5 ++++- .gitlab-ci.yml | 4 +++- tools/binman/etype/fit.py | 2 -- tools/binman/etype/section.py | 17 ----------------- tools/binman/ftest.py | 7 +++++-- tools/binman/main.py | 8 +++++++- tools/binman/state.py | 3 +-- .../binman/test/184_compress_section_size.dts | 1 + tools/u_boot_pylib/test_util.py | 18 ++++++++++++++++-- 9 files changed, 37 insertions(+), 28 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/7 binman: Exclude dist-packages and site-packages
Newer versions of the python3-coverage tool require a directory separator before and after the directory name. Add this so that system package are not included in the coverage report.
---
tools/u_boot_pylib/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/u_boot_pylib/test_util.py +1 -1
@@ -56,7 +56,7 @@ def run_test_coverage(prog, filter_fname, exclude_list, build_dir, else: glob_list = [] glob_list += exclude_list - glob_list += ['*libfdt.py', '*site-packages*', '*dist-packages*'] + glob_list += ['*libfdt.py', '*/site-packages/*', '*/dist-packages/*'] glob_list += ['*concurrencytest*'] test_cmd = 'test' if 'binman' in prog or 'patman' in prog else '-t' prefix = ''
Signature · 1 line
2.43.0
PATCH 2/7 binman: Drop GetRootSkipAtStart()
In reply to Simon GlassThis method is not called anymore, so drop it.
---
tools/binman/etype/section.py | 17 ----------------- 1 file changed, 17 deletions(-)
tools/binman/etype/section.py +0 -17
@@ -666,23 +666,6 @@ class Entry_section(Entry): else: raise ValueError("%s: No such property '%s'" % (msg, prop_name)) - def GetRootSkipAtStart(self): - """Get the skip-at-start value for the top-level section - - This is used to find out the starting offset for root section that - contains this section. If this is a top-level section then it returns - the skip-at-start offset for this section. - - This is used to get the absolute position of section within the image. - - Returns: - Integer skip-at-start value for the root section containing this - section - """ - if self.section: - return self.section.GetRootSkipAtStart() - return self._skip_at_start - def GetStartOffset(self): """Get the start offset for this section
Signature · 1 line
2.43.0
PATCH 3/7 binman: fit: Drop unused code
In reply to Simon GlassThe key-name-hint case is not tested so is presumably not used. Drop it.
---
tools/binman/etype/fit.py | 2 -- 1 file changed, 2 deletions(-)
tools/binman/etype/fit.py +0 -2
@@ -534,8 +534,6 @@ class Entry_fit(Entry_section): def _find_keys_dir(node): for subnode in node.subnodes: if subnode.name.startswith('signature'): - if subnode.props.get('key-name-hint') is None: - continue hint = subnode.props['key-name-hint'].value name = tools.get_input_filename(f"{hint}.key") path = os.path.dirname(name)
Signature · 1 line
2.43.0
PATCH 4/7 binman: Drop algo check in CheckSetHashValue()
In reply to Simon GlassThe CheckAddHashValue() function is always called before this one, so the algorithm check is never used. Replace it with an assert to avoid a coverage error.
---
tools/binman/state.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/binman/state.py +1 -2
@@ -411,8 +411,7 @@ def CheckSetHashValue(node, get_data_func): m = hashlib.sha256() m.update(get_data_func()) data = m.digest() - if data is None: - raise ValueError(f"Node '{node.path}': Unknown hash algorithm '{algo}'") + assert data for n in GetUpdateNodes(hash_node): n.SetData('value', data)
Signature · 1 line
2.43.0
PATCH 5/7 binman: Workaround lz4 cli padding in test cases
In reply to Simon GlassFrom: Jiaxun Yang <[email protected]>
Newer lz4 util is not happy with any padding at end of file, it would abort with error message like:
Stream followed by undecodable data at position 43.
Workaround by skipping testCompUtilPadding test case and manually strip padding in testCompressSectionSize test case.
---
tools/binman/ftest.py | 7 +++++-- tools/binman/test/184_compress_section_size.dts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-)
tools/binman/ftest.py +5 -2
@@ -4591,6 +4591,8 @@ class TestFunctional(unittest.TestCase): dtb.Scan() props = self._GetPropTree(dtb, ['offset', 'image-pos', 'size', 'uncomp-size']) + data = data[:0x30] + data = data.rstrip(b'\xff') orig = self._decompress(data) self.assertEqual(COMPRESS_DATA + U_BOOT_DATA, orig) expected = {
@@ -6196,8 +6198,9 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testCompUtilPadding(self): """Test padding of compression algorithms""" - # Skip zstd because it doesn't support padding - for bintool in [v for k,v in self.comp_bintools.items() if k != 'zstd']: + # Skip zstd and lz4 because they doesn't support padding + for bintool in [v for k,v in self.comp_bintools.items() + if not k in ['zstd', 'lz4']]: self._CheckBintool(bintool) data = bintool.compress(COMPRESS_DATA) self.assertNotEqual(COMPRESS_DATA, data)
tools/binman/test/184_compress_section_size.dts +1 -0
@@ -6,6 +6,7 @@ section { size = <0x30>; compress = "lz4"; + pad-byte = <0xff>; blob { filename = "compress"; };
Signature · 1 line
2.43.0
PATCH 6/7 binman: Workaround missing test coverage
In reply to Simon GlassThe iMX8 entry-types don't have proper test coverage. Add a work-around to skip this for now.
---
tools/binman/main.py | 8 +++++++- tools/u_boot_pylib/test_util.py | 16 +++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-)
tools/binman/main.py +7 -1
@@ -94,10 +94,16 @@ def RunTestCoverage(toolpath, build_dir, args): if toolpath: for path in toolpath: extra_args += ' --toolpath %s' % path + + # Some files unfortunately don't thave the required test coverage. This will + # eventually be fixed, but exclude them for now test_util.run_test_coverage('tools/binman/binman', None, ['*test*', '*main.py', 'tools/patman/*', 'tools/dtoc/*', 'tools/u_boot_pylib/*'], - build_dir, all_set, extra_args or None, args=args) + build_dir, all_set, extra_args or None, args=args, + allow_failures=['tools/binman/btool/cst.py', + 'tools/binman/etype/nxp_imx8mcst.py', + 'tools/binman/etype/nxp_imx8mimage.py']) def RunBinman(args): """Main entry point to binman once arguments are parsed
tools/u_boot_pylib/test_util.py +15 -1
@@ -8,6 +8,7 @@ import doctest import glob import multiprocessing import os +import re import sys import unittest
@@ -25,7 +26,7 @@ except: def run_test_coverage(prog, filter_fname, exclude_list, build_dir, required=None, extra_args=None, single_thread='-P1', - args=None): + args=None, allow_failures=None): """Run tests and check that we get 100% coverage Args:
@@ -96,6 +97,19 @@ def run_test_coverage(prog, filter_fname, exclude_list, build_dir, print('Coverage error: %s, but should be 100%%' % coverage) ok = False if not ok: + if allow_failures: + # for line in lines: + # print('.', line, re.match(r'^(tools/.*py) *\d+ *(\d+) *(\d+)%$', line)) + lines = [re.match(r'^(tools/.*py) *\d+ *(\d+) *\d+%$', line) + for line in stdout.splitlines()] + bad = [] + for mat in lines: + if mat and mat.group(2) != '0': + fname = mat.group(1) + if fname not in allow_failures: + bad.append(fname) + if not bad: + return raise ValueError('Test coverage failure')
Signature · 1 line
2.43.0
PATCH 7/7 CI: Run code-coverage test for Binman
In reply to Simon GlassBinman includes a good set of tests covering all of its functionality. This includes a code-coverage test.
However to date the code-coverage test has not been checked automatically by CI, relying on people to run 'binman test -T' themselves.
Plug the gap to avoid bugs creeping in future.
---
.azure-pipelines.yml | 5 ++++- .gitlab-ci.yml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-)
.azure-pipelines.yml +4 -1
@@ -140,7 +140,10 @@ stages: export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH} ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board tools-only set -ex - ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test + export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot" + ./tools/binman/binman ${TOOLPATH} test + # Avoid "Permission denied: 'cov'" error by using a temporary file + COVERAGE_FILE=/tmp/.coverage ./tools/binman/binman ${TOOLPATH} test -T ./tools/buildman/buildman -t ./tools/dtoc/dtoc -t ./tools/patman/patman test
.gitlab-ci.yml +3 -1
@@ -229,7 +229,9 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites: ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board tools-only; set -e; - ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test; + export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot"; + ./tools/binman/binman ${TOOLPATH} test; + ./tools/binman/binman ${TOOLPATH} test -T; ./tools/buildman/buildman -t; ./tools/dtoc/dtoc -t; ./tools/patman/patman test;
Signature · 1 line
2.43.0
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test cases
Quoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for Binman
While we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Signature · 1 line
Tom
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for Binman
Quoted 3 lines
While we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
Regards,
Simon
Quoted 23 lines · Simon Glass
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 16 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesSimon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for Binman
Quoted 7 lines
Quoted 3 lines
While we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Signature · 1 line
Tom
Hi Tom,
Quoted 29 lines · Tom Rini
Quoted 27 lines · Simon Glass
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanWhile we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Quoted 6 lines
Quoted 3 lines
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Regards,
Simon
Quoted 34 lines · Simon Glass
Hi Tom,
Quoted 31 lines · Tom Rini
Quoted 29 lines · Simon Glass
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanQuoted 3 lines
While we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
OK, would you able to pick this series up?
Quoted 7 lines
Quoted 4 lines
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
Signature · 1 line
Tom
Hi Tom,
Quoted 38 lines · Tom Rini
Quoted 36 lines · Simon Glass
Hi Tom,
Quoted 33 lines · Tom Rini
Quoted 30 lines · Simon Glass
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanQuoted 3 lines
While we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
I understand that, and I'm happy to rebase / resend when you are ready to apply. I'd like to keep the diff as small as we can. But I don't think it should hold up reviews, otherwise we're just going to diverge further. When you reject patches for your tree I typically apply them to my tree in the hope that they might find favour in future.
For the skip-at-start series I sent a series, which you have seen.
Speaking of patches, the PXE series seems to have got lost. It is 'changes requested' but I'm not sure what changes are needed.
I also just found the membuf thing was never applied.
Regards,
SImon
Quoted 47 lines · Simon Glass
Hi Tom,
Quoted 44 lines · Tom Rini
Quoted 41 lines · Simon Glass
Hi Tom,
Quoted 29 lines · Tom Rini
Quoted 27 lines · Simon Glass
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanWhile we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Quoted 6 lines
Quoted 3 lines
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Quoted 8 lines
Quoted 2 lines
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
I understand that, and I'm happy to rebase / resend when you are ready to apply. I'd like to keep the diff as small as we can. But I don't think it should hold up reviews, otherwise we're just going to diverge further. When you reject patches for your tree I typically apply them to my tree in the hope that they might find favour in future.
I think you've got this backwards still.
Quoted 1 line
For the skip-at-start series I sent a series, which you have seen.
Yes, and what blocked them to start with is they defaulted to your tree and not mainline.
Quoted 2 lines
Speaking of patches, the PXE series seems to have got lost. It is 'changes requested' but I'm not sure what changes are needed.
The changes requested was that it breaks lwIP + tftp. You asked that I ignore that since it wasn't failing in public CI, I said it was failing in my CI. I then noticed that it should have failed in public CI (and likely was on Azure, but that's often overloaded enough I cancel runs when I see failures elsewhere). So I then fixed public CI so that the lwIP platforms there too should fail.
Quoted 1 line
I also just found the membuf thing was never applied.
Was that the one where Rasmus asked you to do it differently?
Signature · 1 line
Tom
Hi Tom,
Quoted 58 lines · Tom Rini
Quoted 47 lines · Simon Glass
Hi Tom,
Quoted 44 lines · Tom Rini
Quoted 41 lines · Simon Glass
Hi Tom,
Quoted 29 lines · Tom Rini
Quoted 27 lines · Simon Glass
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanWhile we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Quoted 6 lines
Quoted 3 lines
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Quoted 8 lines
Quoted 2 lines
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
I understand that, and I'm happy to rebase / resend when you are ready to apply. I'd like to keep the diff as small as we can. But I don't think it should hold up reviews, otherwise we're just going to diverge further. When you reject patches for your tree I typically apply them to my tree in the hope that they might find favour in future.
Quoted 6 lines
I think you've got this backwards still.
Quoted 1 line
For the skip-at-start series I sent a series, which you have seen.
Yes, and what blocked them to start with is they defaulted to your tree and not mainline.
I can send a pull request for things, but your tree is missing things and that seems to be growing over time.
As you have seen, I sent [1] to test the water so we'll see how it fares.
Quoted 10 lines
Quoted 3 lines
Speaking of patches, the PXE series seems to have got lost. It is 'changes requested' but I'm not sure what changes are needed.
The changes requested was that it breaks lwIP + tftp. You asked that I ignore that since it wasn't failing in public CI, I said it was failing in my CI. I then noticed that it should have failed in public CI (and likely was on Azure, but that's often overloaded enough I cancel runs when I see failures elsewhere). So I then fixed public CI so that the lwIP platforms there too should fail.
Well I did offer to add a test in my lab...I'll take another look at some point.
Quoted 4 lines
Quoted 2 lines
I also just found the membuf thing was never applied.
Was that the one where Rasmus asked you to do it differently?
Yes and I spent quite a bit of time investigating, and replied, but didn't see any further response. The power-of-two idea is too restrictive and anyway is beyond the scope of my series which is mostly to add some tests and align the naming better with U-Boot. I did suggest some follow-on ideas. Anyway, I am wanting to use it in future series, so it would be good to apply it.
Regards,
SImon
Quoted 3 lines
--
Tom
[1] https://patchwork.ozlabs.org/project/uboot/list/?series=446179
[2] https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/
Quoted 63 lines · Simon Glass
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 47 lines · Simon Glass
Hi Tom,
Quoted 44 lines · Tom Rini
Quoted 41 lines · Simon Glass
Hi Tom,
Quoted 29 lines · Tom Rini
Quoted 27 lines · Simon Glass
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanWhile we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Quoted 6 lines
Quoted 3 lines
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Quoted 8 lines
Quoted 2 lines
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
I understand that, and I'm happy to rebase / resend when you are ready to apply. I'd like to keep the diff as small as we can. But I don't think it should hold up reviews, otherwise we're just going to diverge further. When you reject patches for your tree I typically apply them to my tree in the hope that they might find favour in future.
I think you've got this backwards still.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
For the skip-at-start series I sent a series, which you have seen.
Yes, and what blocked them to start with is they defaulted to your tree and not mainline.
I can send a pull request for things, but your tree is missing things and that seems to be growing over time.
By definition your downstream fork is missing things. That's on you to fix, not me.
Quoted 1 line
As you have seen, I sent [1] to test the water so we'll see how it fares.
That's not a very kind way to put it, given that I've only stopped applying your various series once they don't apply to upstream. And since that's actually fixing platforms and not just tidying up code I'll likely apply that later today.
Quoted 11 lines
Quoted 9 lines
Quoted 2 lines
Speaking of patches, the PXE series seems to have got lost. It is 'changes requested' but I'm not sure what changes are needed.
The changes requested was that it breaks lwIP + tftp. You asked that I ignore that since it wasn't failing in public CI, I said it was failing in my CI. I then noticed that it should have failed in public CI (and likely was on Azure, but that's often overloaded enough I cancel runs when I see failures elsewhere). So I then fixed public CI so that the lwIP platforms there too should fail.
Well I did offer to add a test in my lab...I'll take another look at some point.
Well, it's blocked until it doesn't break platforms.
Quoted 10 lines
Quoted 3 lines
Quoted 1 line
I also just found the membuf thing was never applied.
Was that the one where Rasmus asked you to do it differently?
Yes and I spent quite a bit of time investigating, and replied, but didn't see any further response. The power-of-two idea is too restrictive and anyway is beyond the scope of my series which is mostly to add some tests and align the naming better with U-Boot. I did suggest some follow-on ideas. Anyway, I am wanting to use it in future series, so it would be good to apply it.
No, I'm not going to apply something where the feedback starts with "No, that is the worst of all worlds".
Signature · 1 line
Tom
Hi Tom,
Quoted 67 lines · Tom Rini
Quoted 65 lines · Simon Glass
Hi Tom,
Quoted 62 lines · Tom Rini
Quoted 47 lines · Simon Glass
Hi Tom,
Quoted 44 lines · Tom Rini
Quoted 41 lines · Simon Glass
Hi Tom,
Quoted 29 lines · Tom Rini
Quoted 27 lines · Simon Glass
Hi Tom,
Quoted 23 lines · Tom Rini
Quoted 9 lines · Simon Glass
This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those.
A few fixes are included for some other problems.
Jiaxun Yang (1):
binman: Workaround lz4 cli padding in test casesQuoted 7 lines
Simon Glass (6):
binman: Exclude dist-packages and site-packages
binman: DropGetRootSkipAtStart()
binman: fit: Drop unused code
binman: Drop algo check inCheckSetHashValue()
binman: Workaround missing test coverage
CI: Run code-coverage test for BinmanWhile we likely need Jiaxun's fix in order to be able to update to Ubuntu 24.04, the series itself doesn't apply to -next, please rebase if you intend for this to be in mainline, thanks.
Quoted 6 lines
Quoted 3 lines
OK, would you able to pick this series up?
https://patchwork.ozlabs.org/project/uboot/list/?series=444576
It also doesn't apply. You should really put together a PR, against next.
Oh, it needs another patch anyway. I'll send a v2. Once that is in I can rework this one.
Quoted 8 lines
Quoted 2 lines
Again, it would be helpful if you would send a PR and always base your patches on the appropriate upstream branch.
I understand that, and I'm happy to rebase / resend when you are ready to apply. I'd like to keep the diff as small as we can. But I don't think it should hold up reviews, otherwise we're just going to diverge further. When you reject patches for your tree I typically apply them to my tree in the hope that they might find favour in future.
I think you've got this backwards still.
Quoted 1 line
For the skip-at-start series I sent a series, which you have seen.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Yes, and what blocked them to start with is they defaulted to your tree and not mainline.
I can send a pull request for things, but your tree is missing things and that seems to be growing over time.
By definition your downstream fork is missing things. That's on you to fix, not me.
Yes, so let's try to minimise that where we can.
Quoted 7 lines
Quoted 2 lines
As you have seen, I sent [1] to test the water so we'll see how it fares.
That's not a very kind way to put it, given that I've only stopped applying your various series once they don't apply to upstream. And since that's actually fixing platforms and not just tidying up code I'll likely apply that later today.
OK good, thank you.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 3 lines
Speaking of patches, the PXE series seems to have got lost. It is 'changes requested' but I'm not sure what changes are needed.
The changes requested was that it breaks lwIP + tftp. You asked that I ignore that since it wasn't failing in public CI, I said it was failing in my CI. I then noticed that it should have failed in public CI (and likely was on Azure, but that's often overloaded enough I cancel runs when I see failures elsewhere). So I then fixed public CI so that the lwIP platforms there too should fail.
Quoted 3 lines
Quoted 1 line
Well I did offer to add a test in my lab...I'll take another look at some point.
Well, it's blocked until it doesn't break platforms.
OK I'll have another try.
Quoted 12 lines
Quoted 11 lines
Quoted 4 lines
Quoted 2 lines
I also just found the membuf thing was never applied.
Was that the one where Rasmus asked you to do it differently?
Yes and I spent quite a bit of time investigating, and replied, but didn't see any further response. The power-of-two idea is too restrictive and anyway is beyond the scope of my series which is mostly to add some tests and align the naming better with U-Boot. I did suggest some follow-on ideas. Anyway, I am wanting to use it in future series, so it would be good to apply it.
Quoted 2 lines
No, I'm not going to apply something where the feedback starts with "No, that is the worst of all worlds".
Well, perhaps he's just wrong. I'll reply again. I've applied it to my tree.
Regards,
Simon