RFC: CI: add test/usage_of_is_enabled_check.sh
PATCH 1/1 RFC: CI: add test/usage_of_is_enabled_check.sh
Add script usage_of_is_enabled_check to print any configs that use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa.
Add usage_of_is_enabled_commit.sh to generate commits to fix the above issues.
--- .azure-pipelines.yml | 11 ++++++++ .gitlab-ci.yml | 5 ++++ test/usage_of_is_enabled_check.sh | 41 ++++++++++++++++++++++++++++++ test/usage_of_is_enabled_commit.sh | 38 +++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100755 test/usage_of_is_enabled_check.sh create mode 100755 test/usage_of_is_enabled_commit.sh
.azure-pipelines.yml +11 -0
@@ -67,6 +67,17 @@ stages: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 + - job: check_usage_of_is_enabled + displayName: 'Check usage of CONFIG_IS_ENABLED vs IS_ENABLED' + pool: + vmImage: $(ubuntu_vm) + container: + image: $(ci_runner_image) + options: $(container_option) + steps: + # generate list of SPL configs + - script: test/usage_of_is_enabled_check.sh + - job: cppcheck displayName: 'Static code analysis with cppcheck' pool:
.gitlab-ci.yml +5 -0
@@ -134,6 +134,11 @@ check for new CONFIG symbols outside Kconfig: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 +check usage of CONFIG_IS_ENABLED vs IS_ENABLED: + stage: testsuites + script: + - ./test/usage_of_is_enabled_check.sh + # QA jobs for code analytics # static code analysis with cppcheck (we can add --enable=all later) cppcheck:
test/usage_of_is_enabled_check.sh new file +41 -0
41 lines not on this page · raw message
test/usage_of_is_enabled_commit.sh new file +38 -0
@@ -0,0 +1,38 @@ +#!/bin/bash +# generate list of CONFIGs that should use CONFIG_IS_ENABLED +{ { git grep 'obj-$(CONFIG_$(SPL_'|grep Makefile|sed -e "s/SPL_TPL_/SPL_/"| \ +sed -n -r 's/obj\-\$\(CONFIG_\$\(SPL_\)([0-9a-zA-Z_]+)\)/\n\{\1\}\n/gp'| \ +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ;\ +{ git grep -E 'config [ST]PL_'|grep Kconfig| \ +sed -n -r "s/config [ST]PL_([0-9a-zA-Z_]+)/\n\{\1\}\n/p" | +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ; \ +git grep -E 'CONFIG_IS_ENABLED\(CMD_'|sed -n -e "s/\(CONFIG_IS_ENABLED(CMD_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\((CMD_[0-9a-zA-Z_]+)\)/\1/p"; \ +echo -e "\ +BZIP2\n\ +CONFIG_CLK\n\ +DM_EVENT\n\ +EFI_DEVICE_PATH_TO_TEXT\n\ +EFI_LOADER\n\ +ERRNO_STR\n\ +GENERATE_SMBIOS_TABLE\n\ +";\ +} | sort -u >splcfg.tmp + + +git grep CONFIG_IS_ENABLED|sed -n -e "s/\(CONFIG_IS_ENABLED([0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\(([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep -vw FOO| \ +comm -23 - splcfg.tmp|xargs -I {} \ +sh -c "git grep -l 'CONFIG_IS_ENABLED({})' | \ +xargs -IFile sh -c \"sed -i -e \\\"s/CONFIG_IS_ENABLED({})/IS_ENABLED(CONFIG_{})/g\\\" File\" ; \ +git commit -a -m\"CONFIG_{}: change CONFIG_IS_ENABLED to IS_ENABLED\";" + +git grep -w IS_ENABLED|sed -n -e "s/\(IS_ENABLED(CONFIG_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/IS_ENABLED\(CONFIG_([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep -vw FOO| \ +join - splcfg.tmp |xargs -I {} \ +sh -c "git grep -l 'IS_ENABLED(CONFIG_{})' | \ +xargs -IFile sh -c \"sed -i -e \\\"s/\([^_]\)IS_ENABLED(CONFIG_{})/\1CONFIG_IS_ENABLED({})/g\\\" File\" ; \ +git commit -a -m\"CONFIG_{}: change IS_ENABLED to CONFIG_IS_ENABLED\";" + +rm splcfg.tmp +
Signature · 1 line
2.34.1
Hi Troy,
Quoted 8 lines · Troy Kisky
Add script
usage_of_is_enabled_checkto print any configs that useCONFIG_IS_ENABLEDinstead ofIS_ENABLEDand vice versa.Add
usage_of_is_enabled_commit.shto generate commits to fix the above issues.Signed-off-by Troy Kisky <[email protected]>
Quoted 8 lines
--- .azure-pipelines.yml | 11 ++++++++ .gitlab-ci.yml | 5 ++++ test/usage_of_is_enabled_check.sh | 41 ++++++++++++++++++++++++++++++ test/usage_of_is_enabled_commit.sh | 38 +++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100755 test/usage_of_is_enabled_check.sh create mode 100755 test/usage_of_is_enabled_commit.sh
This looks reasonable to me. I would of course prefer to just fix all these problems, since they make it impossible to move to split config.
But we need this sort of check in CI to stop it happening again.
Quoted 45 lines
.azure-pipelines.yml +11
-0@@ -67,6 +67,17 @@ stages: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 + - job: check_usage_of_is_enabled + displayName: 'Check usage of CONFIG_IS_ENABLED vs IS_ENABLED' + pool: + vmImage: $(ubuntu_vm) + container: + image: $(ci_runner_image) + options: $(container_option) + steps: + # generate list of SPL configs + - script: test/usage_of_is_enabled_check.sh + - job: cppcheck displayName: 'Static code analysis with cppcheck' pool:.gitlab-ci.yml +5
-0@@ -134,6 +134,11 @@ check for new CONFIG symbols outside Kconfig: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 +check usage of CONFIG_IS_ENABLED vs IS_ENABLED: + stage: testsuites + script: + - ./test/usage_of_is_enabled_check.sh + # QA jobs for code analytics # static code analysis with cppcheck (we can add --enable=all later) cppcheck:test/usage_of_is_enabled_check.sh new file +0
-0
test/usage_of_is_enabled_check.sh line 2
Quoted 2 lines
test/usage_of_is_enabled_check.sh new file +2
-0@@ -0,0 +1,41 @@ +#!/bin/bash +# generate list of CONFIGs that should use CONFIG_IS_ENABLED
Could you add a few comments about the steps in here?
test/usage_of_is_enabled_check.sh line 13
Quoted 11 lines
test/usage_of_is_enabled_check.sh new file +11
-0+{ { git grep 'obj-$(CONFIG_$(SPL_'|grep Makefile|sed -e "s/SPL_TPL_/SPL_/"| \ +sed -n -r 's/obj\-\$\(CONFIG_\$\(SPL_\)([0-9a-zA-Z_]+)\)/\n\{\1\}\n/gp'| \ +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ;\ +{ git grep -E 'config [ST]PL_'|grep Kconfig| \ +sed -n -r "s/config [ST]PL_([0-9a-zA-Z_]+)/\n\{\1\}\n/p" | +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ; \ +git grep -E 'CONFIG_IS_ENABLED\(CMD_'|sed -n -e "s/\(CONFIG_IS_ENABLED(CMD_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\((CMD_[0-9a-zA-Z_]+)\)/\1/p"; \ +echo -e "\ +BZIP2\n\ +CONFIG_CLK\n\
CLK ?
test/usage_of_is_enabled_check.sh line 19
Quoted 6 lines
test/usage_of_is_enabled_check.sh new file +6
-0+DM_EVENT\n\ +EFI_DEVICE_PATH_TO_TEXT\n\ +EFI_LOADER\n\ +ERRNO_STR\n\ +GENERATE_SMBIOS_TABLE\n\ +";\
What is the above list for? Can you add a comment?
Quoted 28 lines
test/usage_of_is_enabled_check.sh new file +22
-0+} | sort -u >splcfg.tmp + +{ +# generate list of CONFIGs that incorrectly use CONFIG_IS_ENABLED +git grep CONFIG_IS_ENABLED|sed -n -e "s/\(CONFIG_IS_ENABLED([0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\(([0-9a-zA-Z_]+)\)/\1/p" |sort -u| comm -23 - splcfg.tmp ; + +# generate list of CONFIGs that incorrectly use IS_ENABLED +git grep -w IS_ENABLED|sed -n -e "s/\(IS_ENABLED(CONFIG_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/IS_ENABLED\(CONFIG_([0-9a-zA-Z_]+)\)/\1/p" |sort -u| join - splcfg.tmp; +} | grep -vw FOO; +if [ $? -eq 0 ] ; then + echo "The above may have incorrect usage of IS_ENABLED/CONFIG_IS_ENABLED" + echo "Run test/usage_of_is_enabled_commit.sh and squash with appropriate commit" + ret=1; +else + ret=0; +fi + +rm splcfg.tmp +exit ${ret} +test/usage_of_is_enabled_commit.sh new file +0
-0
test/usage_of_is_enabled_commit.sh line 2
Quoted 2 lines
test/usage_of_is_enabled_commit.sh new file +2
-0@@ -0,0 +1,38 @@ +#!/bin/bash +# generate list of CONFIGs that should use CONFIG_IS_ENABLED
Same thing, could use some comments
Quoted 37 lines
test/usage_of_is_enabled_commit.sh new file +36
-1+{ { git grep 'obj-$(CONFIG_$(SPL_'|grep Makefile|sed -e "s/SPL_TPL_/SPL_/"| \ +sed -n -r 's/obj\-\$\(CONFIG_\$\(SPL_\)([0-9a-zA-Z_]+)\)/\n\{\1\}\n/gp'| \ +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ;\ +{ git grep -E 'config [ST]PL_'|grep Kconfig| \ +sed -n -r "s/config [ST]PL_([0-9a-zA-Z_]+)/\n\{\1\}\n/p" | +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ; \ +git grep -E 'CONFIG_IS_ENABLED\(CMD_'|sed -n -e "s/\(CONFIG_IS_ENABLED(CMD_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\((CMD_[0-9a-zA-Z_]+)\)/\1/p"; \ +echo -e "\ +BZIP2\n\ +CONFIG_CLK\n\ +DM_EVENT\n\ +EFI_DEVICE_PATH_TO_TEXT\n\ +EFI_LOADER\n\ +ERRNO_STR\n\ +GENERATE_SMBIOS_TABLE\n\ +";\ +} | sort -u >splcfg.tmp + + +git grep CONFIG_IS_ENABLED|sed -n -e "s/\(CONFIG_IS_ENABLED([0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/CONFIG_IS_ENABLED\(([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep -vw FOO| \ +comm -23 - splcfg.tmp|xargs -I {} \ +sh -c "git grep -l 'CONFIG_IS_ENABLED({})' | \ +xargs -IFile sh -c \"sed -i -e \\\"s/CONFIG_IS_ENABLED({})/IS_ENABLED(CONFIG_{})/g\\\" File\" ; \ +git commit -a -m\"CONFIG_{}: change CONFIG_IS_ENABLED to IS_ENABLED\";" + +git grep -w IS_ENABLED|sed -n -e "s/\(IS_ENABLED(CONFIG_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \ +sed -n -r "s/IS_ENABLED\(CONFIG_([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep -vw FOO| \ +join - splcfg.tmp |xargs -I {} \ +sh -c "git grep -l 'IS_ENABLED(CONFIG_{})' | \ +xargs -IFile sh -c \"sed -i -e \\\"s/\([^_]\)IS_ENABLED(CONFIG_{})/\1CONFIG_IS_ENABLED({})/g\\\" File\" ; \ +git commit -a -m\"CONFIG_{}: change IS_ENABLED to CONFIG_IS_ENABLED\";" + +rm splcfg.tmp + --
Quoted 2 lines
2.34.1
Regards,
SImon
Hi Simon
Quoted 21 lines · Simon Glass
Hi Troy,
Quoted 8 lines · Troy Kisky
Add script
usage_of_is_enabled_checkto print any configs that useCONFIG_IS_ENABLEDinstead ofIS_ENABLEDand vice versa.Add
usage_of_is_enabled_commit.shto generate commits to fix the above issues.Signed-off-by Troy Kisky <[email protected]>Quoted 8 lines
--- .azure-pipelines.yml | 11 ++++++++ .gitlab-ci.yml | 5 ++++ test/usage_of_is_enabled_check.sh | 41 ++++++++++++++++++++++++++++++ test/usage_of_is_enabled_commit.sh | 38 +++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100755 test/usage_of_is_enabled_check.sh create mode 100755 test/usage_of_is_enabled_commit.sh
Quoted 3 lines
This looks reasonable to me. I would of course prefer to just fix all these problems, since they make it impossible to move to split config.
So, this might help your effort ?
Do I need to have a body in these 200 commits or is only a subject enough ? Are you happy with the subject, or do I need to edit each individually ?
Currently I haveCONFIG_ZSTD: change IS_ENABLED to CONFIG_IS_ENABLED
Is there an easy way for "git send-email" to send each commit only to the proper maintainer ?
Quoted 44 lines
But we need this sort of check in CI to stop it happening again.
Review
Quoted 40 lines
.azure-pipelines.yml +11
-0@@ -67,6 +67,17 @@ stages: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 + - job: check_usage_of_is_enabled + displayName: 'Check usage of CONFIG_IS_ENABLED vs IS_ENABLED' + pool: + vmImage: $(ubuntu_vm) + container: + image: $(ci_runner_image) + options: $(container_option) + steps: + # generate list of SPL configs + - script: test/usage_of_is_enabled_check.sh + - job: cppcheck displayName: 'Static code analysis with cppcheck' pool:.gitlab-ci.yml +5
-0@@ -134,6 +134,11 @@ check for new CONFIG symbols outside Kconfig: :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 +check usage of CONFIG_IS_ENABLED vs IS_ENABLED: + stage: testsuites + script: + - ./test/usage_of_is_enabled_check.sh + # QA jobs for code analytics # static code analysis with cppcheck (we can add --enable=all later) cppcheck:(quoted diff) +0
-0
b/test/usage_of_is_enabled_check.sh
Quoted 10 lines
test/usage_of_is_enabled_check.sh line 2
Quoted 7 lines
new file mode 100755
index 00000000000..0bc9bff8bd1test/usage_of_is_enabled_check.sh new file +2
-0@@ -0,0 +1,41 @@ +#!/bin/bash +# generate list of CONFIGs that should use CONFIG_IS_ENABLEDCould you add a few comments about the steps in here?
+# 1. all obj-$(CONFIG_$(SPL_)xxx in Makefiles
+# 2. all SPL_xxx in Kconfig files
+# 3. all CONFIG_CMD_xxx which already use CONFIG_IS_ENABLED
+# The Makefile for most if these use ifndef CONFIG_SPL_BUILD
+# instead of obj-$(CONFIG_$(SPL_)xxx
+# 4. A list of other configs that should use CONFIG_IS_ENABLED
+# Note: CONFIG_CLK was included to prevent a change intest_checkpatch.py
+# which is checking for an error.
+# This list could be reduced if obj-$(CONFIG_$(SPL_)xxx was used
instead of
+# ifndef CONFIG_SPL_BUILD in Makefiles
Quoted 11 lines
test/usage_of_is_enabled_check.sh line 3
Quoted 2 lines
test/usage_of_is_enabled_check.sh new file +1
-0+{ { git grep 'obj-$(CONFIG_$(SPL_'|grep Makefile|sed -e"s/SPL_TPL_/SPL_/"| \
test/usage_of_is_enabled_check.sh line 4
Quoted 1 line
test/usage_of_is_enabled_check.sh new file +1
-0+sed -n -r's/obj\-\$\(CONFIG_\$\(SPL_\)([0-9a-zA-Z_]+)\)/\n\{\1\}\n/gp'| \
test/usage_of_is_enabled_check.sh
Quoted 5 lines
test/usage_of_is_enabled_check.sh new file +5
-0+sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ;\ +{ git grep -E 'config [ST]PL_'|grep Kconfig| \ +sed -n -r "s/config [ST]PL_([0-9a-zA-Z_]+)/\n\{\1\}\n/p" | +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ; \ +git grep -E 'CONFIG_IS_ENABLED\(CMD_'|sed -n -e"s/\(CONFIG_IS_ENABLED(CMD_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
Quoted 8 lines
test/usage_of_is_enabled_check.sh line 13
Quoted 4 lines
test/usage_of_is_enabled_check.sh new file +4
-0+sed -n -r "s/CONFIG_IS_ENABLED\((CMD_[0-9a-zA-Z_]+)\)/\1/p"; \ +echo -e "\ +BZIP2\n\ +CONFIG_CLK\n\CLK ?
Addressed above
Quoted 10 lines
test/usage_of_is_enabled_check.sh line 19
Quoted 6 lines
test/usage_of_is_enabled_check.sh new file +6
-0+DM_EVENT\n\ +EFI_DEVICE_PATH_TO_TEXT\n\ +EFI_LOADER\n\ +ERRNO_STR\n\ +GENERATE_SMBIOS_TABLE\n\ +";\What is the above list for? Can you add a comment?
Addressed above
Quoted 30 lines
test/usage_of_is_enabled_check.sh
Quoted 5 lines
test/usage_of_is_enabled_check.sh new file +5
-0+} | sort -u >splcfg.tmp + +{ +# generate list of CONFIGs that incorrectly use CONFIG_IS_ENABLED +git grep CONFIG_IS_ENABLED|sed -n -e"s/\(CONFIG_IS_ENABLED([0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
test/usage_of_is_enabled_check.sh line 25
Quoted 1 line
test/usage_of_is_enabled_check.sh new file +1
-0+sed -n -r "s/CONFIG_IS_ENABLED\(([0-9a-zA-Z_]+)\)/\1/p" |sort -u| comm-23 - splcfg.tmp ;
test/usage_of_is_enabled_check.sh
Quoted 3 lines
test/usage_of_is_enabled_check.sh new file +3
-0+ +# generate list of CONFIGs that incorrectly use IS_ENABLED +git grep -w IS_ENABLED|sed -n -e"s/\(IS_ENABLED(CONFIG_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
test/usage_of_is_enabled_check.sh line 29
Quoted 1 line
test/usage_of_is_enabled_check.sh new file +1
-0+sed -n -r "s/IS_ENABLED\(CONFIG_([0-9a-zA-Z_]+)\)/\1/p" |sort -u| join- splcfg.tmp;
test/usage_of_is_enabled_check.sh
Quoted 3 lines
test/usage_of_is_enabled_check.sh new file +3
-0+} | grep -vw FOO; +if [ $? -eq 0 ] ; then + echo "The above may have incorrect usage ofIS_ENABLED/CONFIG_IS_ENABLED"
test/usage_of_is_enabled_check.sh line 33
Quoted 1 line
test/usage_of_is_enabled_check.sh new file +1
-0+ echo "Run test/usage_of_is_enabled_commit.sh and squash withappropriate commit"
Review
Quoted 9 lines
test/usage_of_is_enabled_check.sh new file +8
-0+ ret=1; +else + ret=0; +fi + +rm splcfg.tmp +exit ${ret} +(quoted diff) +0
-0
b/test/usage_of_is_enabled_commit.sh
Quoted 10 lines
test/usage_of_is_enabled_commit.sh line 2
Quoted 7 lines
new file mode 100755
index 00000000000..f776d0c69abtest/usage_of_is_enabled_commit.sh new file +2
-0@@ -0,0 +1,38 @@ +#!/bin/bash +# generate list of CONFIGs that should use CONFIG_IS_ENABLEDSame thing, could use some comments
Same added here
Thanks
Troy
Quoted 52 lines
test/usage_of_is_enabled_commit.sh line 3
Quoted 1 line
test/usage_of_is_enabled_commit.sh new file +1
-0+{ { git grep 'obj-$(CONFIG_$(SPL_'|grep Makefile|sed -e"s/SPL_TPL_/SPL_/"| \
test/usage_of_is_enabled_commit.sh line 4
Quoted 1 line
test/usage_of_is_enabled_commit.sh new file +1
-0+sed -n -r's/obj\-\$\(CONFIG_\$\(SPL_\)([0-9a-zA-Z_]+)\)/\n\{\1\}\n/gp'| \
test/usage_of_is_enabled_commit.sh line 9
Quoted 5 lines
test/usage_of_is_enabled_commit.sh new file +5
-0+sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ;\ +{ git grep -E 'config [ST]PL_'|grep Kconfig| \ +sed -n -r "s/config [ST]PL_([0-9a-zA-Z_]+)/\n\{\1\}\n/p" | +sed -n -r 's/\{([0-9a-zA-Z_]+)\}/\1/p'; } ; \ +git grep -E 'CONFIG_IS_ENABLED\(CMD_'|sed -n -e"s/\(CONFIG_IS_ENABLED(CMD_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
Quoted 4 lines
test/usage_of_is_enabled_commit.sh new file +4
-0+sed -n -r "s/CONFIG_IS_ENABLED\((CMD_[0-9a-zA-Z_]+)\)/\1/p"; \ +echo -e "\ +BZIP2\n\ +CONFIG_CLK\n\test/usage_of_is_enabled_commit.sh line 23
Quoted 10 lines
test/usage_of_is_enabled_commit.sh new file +10
-0+DM_EVENT\n\ +EFI_DEVICE_PATH_TO_TEXT\n\ +EFI_LOADER\n\ +ERRNO_STR\n\ +GENERATE_SMBIOS_TABLE\n\ +";\ +} | sort -u >splcfg.tmp + + +git grep CONFIG_IS_ENABLED|sed -n -e"s/\(CONFIG_IS_ENABLED([0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
test/usage_of_is_enabled_commit.sh line 24
Quoted 1 line
test/usage_of_is_enabled_commit.sh new file +1
-0+sed -n -r "s/CONFIG_IS_ENABLED\(([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep-vw FOO| \
test/usage_of_is_enabled_commit.sh
Quoted 3 lines
test/usage_of_is_enabled_commit.sh new file +3
-0+comm -23 - splcfg.tmp|xargs -I {} \ +sh -c "git grep -l 'CONFIG_IS_ENABLED({})' | \ +xargs -IFile sh -c \"sed -i -e\\\"s/CONFIG_IS_ENABLED({})/IS_ENABLED(CONFIG_{})/g\\\" File\" ; \
test/usage_of_is_enabled_commit.sh
Quoted 3 lines
test/usage_of_is_enabled_commit.sh new file +3
-0+git commit -a -m\"CONFIG_{}: change CONFIG_IS_ENABLED to IS_ENABLED\";" + +git grep -w IS_ENABLED|sed -n -e"s/\(IS_ENABLED(CONFIG_[0-9a-zA-Z_]*)\)/\n\1\n/gp"| \
test/usage_of_is_enabled_commit.sh line 31
Quoted 1 line
test/usage_of_is_enabled_commit.sh new file +1
-0+sed -n -r "s/IS_ENABLED\(CONFIG_([0-9a-zA-Z_]+)\)/\1/p" |sort -u|grep-vw FOO| \
test/usage_of_is_enabled_commit.sh
Quoted 3 lines
test/usage_of_is_enabled_commit.sh new file +3
-0+join - splcfg.tmp |xargs -I {} \ +sh -c "git grep -l 'IS_ENABLED(CONFIG_{})' | \ +xargs -IFile sh -c \"sed -i -e\\\"s/\([^_]\)IS_ENABLED(CONFIG_{})/\1CONFIG_IS_ENABLED({})/g\\\" File\" ; \
Quoted 7 lines
test/usage_of_is_enabled_commit.sh new file +4
-1+git commit -a -m\"CONFIG_{}: change IS_ENABLED to CONFIG_IS_ENABLED\";" + +rm splcfg.tmp + --2.34.1
Regards,
SImon
Hi Guys
My recent CI runs for my is_enabled branch have failed Run tests for Nokia RX-51 (aka N900) with
2023-02-07T17:38:08.1393984Z --2023-02-07 17:38:08-- (try:20) http://repository.maemo.org/pool/maemo5.0/free/b/busybox/busybox_1.10.2.legal-1osso30+0m5_armel.deb 2023-02-07T17:40:17.4031492Z Connecting to repository.maemo.org (repository.maemo.org)|213.128.137.22|:80... failed: Connection timed out. 2023-02-07T17:40:17.4032676Z Giving up. 2023-02-07T17:40:17.4033026Z 2023-02-07T17:40:17.4104289Z ##[error]Bash exited with code '4'. 2023-02-07T17:40:17.4397078Z ##[section]Finishing: CmdLine
Any suggestions?
Thanks
Troy
Hi Troy,
Quoted 7 lines · Troy Kisky
Hi Guys
My recent CI runs for my
is_enabledbranch have failed Run tests for Nokia RX-51 (aka N900) with
Quoted 8 lines
2023-02-07T17:38:08.1393984Z --2023-02-07 17:38:08-- (try:20) http://repository.maemo.org/pool/maemo5.0/free/b/busybox/busybox_1.10.2.legal-1osso30+0m5_armel.deb 2023-02-07T17:40:17.4031492Z Connecting to repository.maemo.org (repository.maemo.org)|213.128.137.22|:80... failed: Connection timed out. 2023-02-07T17:40:17.4032676Z Giving up. 2023-02-07T17:40:17.4033026Z 2023-02-07T17:40:17.4104289Z ##[error]Bash exited with code '4'. 2023-02-07T17:40:17.4397078Z ##[section]Finishing: CmdLineAny suggestions?
Yes that happens every now and then. See [1] and [2] for previous discussion. I think it would be nice to do more of [1] and avoid the network traffic.
Regards,
Simon
[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[2 ]https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/