CI: Add a test for building without CMDLINE
PATCH 1/1 CI: Add a test for building without CMDLINE
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)
.azure-pipelines.yml +8 -0
@@ -19,6 +19,7 @@ variables: arm_catch_all: "arm -x aarch64,am33xx,at91,bcm,ls1,kirkwood,mvebu,omap,rk,siemens,mx,sunxi,technexion,toradex" aarch64_catch_all: "aarch64 -x amlogic,bcm,engicam,imx,ls1,ls2,lx216,mvebu,rk,siemens,sunxi,toradex" everything_but_arm_and_powerpc: "arc m68k microblaze mips nios2 riscv sandbox sh x86 xtensa -x arm,powerpc" + sandbox_no_cmdline: "-a ~CMDLINE --board sandbox" stages: - stage: testsuites
@@ -220,6 +221,7 @@ stages: built="$built $(tools/buildman/buildman ${BMANARGS} $(arm_catch_all) | grep '^ ')" built="$built $(tools/buildman/buildman ${BMANARGS} $(aarch64_catch_all) | grep '^ ')" built="$built $(tools/buildman/buildman ${BMANARGS} $(everything_but_arm_and_powerpc) | grep '^ ')" + built="$built $(tools/buildman/buildman ${BMANARGS} $(sandbox_no_cmdline) | grep '^ ')" # Finally see how many machines that is. actual=$(tools/buildman/buildman ${BMANARGS} $built | grep "Total boards to build for each commit" | cut -d ' ' -f 8) echo We would build a total of $actual out of $total platforms this CI run
@@ -351,6 +353,10 @@ stages: BUILD_ENV: "FTRACE=1 NO_LTO=1" TEST_PY_TEST_SPEC: "trace" OVERRIDE: "-a CONFIG_TRACE=y -a CONFIG_TRACE_EARLY=y -a CONFIG_TRACE_EARLY_SIZE=0x01000000 -a CONFIG_TRACE_BUFFER_SIZE=0x02000000" + sandbox_no_cmdline: + TEST_PY_BD: "sandbox" + TEST_PY_TEST_SPEC: "nothing" + OVERRIDE: "-a ~CMDLINE" steps: - download: current artifact: testsh
@@ -565,6 +571,8 @@ stages: BUILDMAN: $(aarch64_catch_all) everything_but_arm_and_powerpc: BUILDMAN: $(everything_but_arm_and_powerpc) + sandbox_no_cmdline: + BUILDMAN: $(sandbox_no_cmdline) steps: - script: | cat << EOF > build.sh
.gitlab-ci.yml +11 -0
@@ -149,6 +149,17 @@ build all other platforms: exit $ret; fi; +build no_cmdline: + extends: .world_build + script: + - ret=0; + git config --global --add safe.directory "${CI_PROJECT_DIR}"; + ./tools/buildman/buildman -o /tmp -PEWM -a ~CMDLINE --board sandbox|| ret=$?; + if [[ $ret -ne 0 ]]; then + ./tools/buildman/buildman -o /tmp -seP; + exit $ret; + fi; + .testsuites: stage: testsuites rules:
Signature · 1 line
2.43.0
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps sandbox_spl since that only does SPL related pytests?
Signature · 1 line
Tom
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)
Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Regards,
Simon
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?
Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with qemu_arm64_lwip_defconfig I'd rather just add sandbox_no_cmdline_defconfig and use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.
Signature · 1 line
Tom
Hi Tom,
Quoted 30 lines · Tom Rini
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Quoted 7 lines
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with
qemu_arm64_lwip_defconfigI'd rather just addsandbox_no_cmdline_defconfigand use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.
No, I have not seen any problems with CMDLINE as it is, but there are some BOOTSTD cases which I would like to check, since disabling the command-line and using programmatic boot is something I'd like to eventually test. So this is just a starting point. In the end perhaps we have a new sandbox variant, or can take over the SPL one...but I'm not sure yet.
If Azure is a problem, we could perhaps just do it in gitlab, where we have more runners. A build variant isn't the sort of problem that would be different between gitlab and Azure.
The run is at [1] and it only took 1m19s - I suppose you saw that it is in the 'world build' section and no tests are run.
Regards,
Simon
[1] https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/924269
Quoted 52 lines · Simon Glass
Hi Tom,
Quoted 30 lines · Tom Rini
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Quoted 7 lines
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with
qemu_arm64_lwip_defconfigI'd rather just addsandbox_no_cmdline_defconfigand use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.No, I have not seen any problems with CMDLINE as it is, but there are some BOOTSTD cases which I would like to check, since disabling the command-line and using programmatic boot is something I'd like to eventually test. So this is just a starting point. In the end perhaps we have a new sandbox variant, or can take over the SPL one...but I'm not sure yet.
If Azure is a problem, we could perhaps just do it in gitlab, where we have more runners. A build variant isn't the sort of problem that would be different between gitlab and Azure.
Quoted 7 lines
The run is at [1] and it only took 1m19s - I suppose you saw that it is in the 'world build' section and no tests are run.
Regards,
Simon[1] https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/924269
No, I don't want Azure and GitLab to diverge since Azure is where everywhere who isn't a custodian with git access can run CI and I keep encouraging more people to use it. And also note that the actual build took 8 seconds which is another reason it would be good to just drop it in to an existing job.
Signature · 1 line
Tom
Hi Tom,
Quoted 60 lines · Tom Rini
Quoted 58 lines · Simon Glass
Hi Tom,
Quoted 30 lines · Tom Rini
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Quoted 7 lines
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with
qemu_arm64_lwip_defconfigI'd rather just addsandbox_no_cmdline_defconfigand use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.No, I have not seen any problems with CMDLINE as it is, but there are some BOOTSTD cases which I would like to check, since disabling the command-line and using programmatic boot is something I'd like to eventually test. So this is just a starting point. In the end perhaps we have a new sandbox variant, or can take over the SPL one...but I'm not sure yet.
If Azure is a problem, we could perhaps just do it in gitlab, where we have more runners. A build variant isn't the sort of problem that would be different between gitlab and Azure.
The run is at [1] and it only took 1m19s - I suppose you saw that it is in the 'world build' section and no tests are run.
Regards,
Simon
Quoted 7 lines
Quoted 1 line
[1] https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/924269
No, I don't want Azure and GitLab to diverge since Azure is where everywhere who isn't a custodian with git access can run CI and I keep encouraging more people to use it. And also note that the actual build took 8 seconds which is another reason it would be good to just drop it in to an existing job.
Oh I didn't know that about Azure. Could/should we have a public gitlab pusher also? Or is that not possible?
Anyway, I cannot put it into a job which runs tests, since it doesn't ever produce a command prompt. So that rules out the test.py stage, since even if I use '-k nothing' it will still fail to see the prompt, so the build will fail. I don't see any option but to put the build in a separate piece?
Regards,
Simon
Quoted 65 lines · Simon Glass
Hi Tom,
Quoted 62 lines · Tom Rini
Quoted 59 lines · Simon Glass
Hi Tom,
Quoted 30 lines · Tom Rini
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Quoted 7 lines
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with
qemu_arm64_lwip_defconfigI'd rather just addsandbox_no_cmdline_defconfigand use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.No, I have not seen any problems with CMDLINE as it is, but there are some BOOTSTD cases which I would like to check, since disabling the command-line and using programmatic boot is something I'd like to eventually test. So this is just a starting point. In the end perhaps we have a new sandbox variant, or can take over the SPL one...but I'm not sure yet.
If Azure is a problem, we could perhaps just do it in gitlab, where we have more runners. A build variant isn't the sort of problem that would be different between gitlab and Azure.
The run is at [1] and it only took 1m19s - I suppose you saw that it is in the 'world build' section and no tests are run.
Regards,
Simon[1] https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/924269
Quoted 8 lines
Quoted 5 lines
No, I don't want Azure and GitLab to diverge since Azure is where everywhere who isn't a custodian with git access can run CI and I keep encouraging more people to use it. And also note that the actual build took 8 seconds which is another reason it would be good to just drop it in to an existing job.
Oh I didn't know that about Azure. Could/should we have a public gitlab pusher also? Or is that not possible?
I'd really rather not overwhelm our few build servers (of which you're providing most of).
Quoted 5 lines
Anyway, I cannot put it into a job which runs tests, since it doesn't ever produce a command prompt. So that rules out the
test.pystage, since even if I use '-k nothing' it will still fail to see the prompt, so the build will fail. I don't see any option but to put the build in a separate piece?
Yes, we could just do something like configs/qemu_arm64_lwip_defconfig but be sandbox_nocmdline_defconfig and it'll just be part of the normal world stage that already builds all of the sandbox targets.
Signature · 1 line
Tom
Hi Tom,
Quoted 85 lines · Tom Rini
Quoted 65 lines · Simon Glass
Hi Tom,
Quoted 62 lines · Tom Rini
Quoted 59 lines · Simon Glass
Hi Tom,
Quoted 30 lines · Tom Rini
Quoted 22 lines · Simon Glass
Hi Tom,
Quoted 13 lines · On Mon, Oct 21, 2024, 16:33 Tom Rini <[email protected]> wrote:
Quoted 9 lines · Simon Glass
Something this breaks, so add a test to keep it working. Since sandbox enables a lot of options, it is a good board to use.
Signed-off-by Simon Glass <[email protected]>---
.azure-pipelines.yml | 8 ++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 19 insertions(+)Quoted 5 lines
I don't like this because "sandbox" is one of the longest run-time build options due to all of the tests it runs. And given how we break down the jobs this will make a further bottleneck. Can we just disable CMDLINE in one of the existing sandbox defconfigs instead please? Perhaps
sandbox_splsince that only does SPL related pytests?Quoted 5 lines
Actually we do boot into U-Boot proper as some tests need to check that SPL did the right thing.
Note that this patch doesn't run any tests at all. It just tries to build sandbox without CMDLINE
Quoted 7 lines
Is there no existing thing we can put this in? And have we had another problem with CMDLINE=n ? It's not cheap (wall clock) to add another stage, especially in Azure, I'd really rather figure some way to bundle this in with what we already do. Heck, following on with
qemu_arm64_lwip_defconfigI'd rather just addsandbox_no_cmdline_defconfigand use #include so that it's just a few lines of defconfig anyhow, but merged in with existing builds.No, I have not seen any problems with CMDLINE as it is, but there are some BOOTSTD cases which I would like to check, since disabling the command-line and using programmatic boot is something I'd like to eventually test. So this is just a starting point. In the end perhaps we have a new sandbox variant, or can take over the SPL one...but I'm not sure yet.
If Azure is a problem, we could perhaps just do it in gitlab, where we have more runners. A build variant isn't the sort of problem that would be different between gitlab and Azure.
The run is at [1] and it only took 1m19s - I suppose you saw that it is in the 'world build' section and no tests are run.
Regards,
Simon[1] https://source.denx.de/u-boot/custodians/u-boot-dm/-/jobs/924269
Quoted 8 lines
Quoted 5 lines
No, I don't want Azure and GitLab to diverge since Azure is where everywhere who isn't a custodian with git access can run CI and I keep encouraging more people to use it. And also note that the actual build took 8 seconds which is another reason it would be good to just drop it in to an existing job.
Oh I didn't know that about Azure. Could/should we have a public gitlab pusher also? Or is that not possible?
I'd really rather not overwhelm our few build servers (of which you're providing most of).
Quoted 5 lines
Anyway, I cannot put it into a job which runs tests, since it doesn't ever produce a command prompt. So that rules out the
test.pystage, since even if I use '-k nothing' it will still fail to see the prompt, so the build will fail. I don't see any option but to put the build in a separate piece?
Quoted 3 lines
Yes, we could just do something like configs/qemu_arm64_lwip_defconfig but be
sandbox_nocmdline_defconfigand it'll just be part of the normal world stage that already builds all of the sandbox targets.
Oh I see, yes I can do that.
Regards,
Simon