All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Azure CI: Save pytest output automatically
@ 2023-02-28 20:28 Tom Rini
  2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tom Rini @ 2023-02-28 20:28 UTC (permalink / raw)
  To: u-boot

Enable use of the python-azurepipelines package which provides automatic
formatting and uploading of the pytest output.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 .azure-pipelines.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index f6609bbd6bd1..609020fa5498 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -194,10 +194,11 @@ stages:
           virtualenv -p /usr/bin/python3 /tmp/venv
           . /tmp/venv/bin/activate
           pip install -r test/py/requirements.txt
+          pip install pytest-azurepipelines
           export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
           export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
           # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
-          ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
+          ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR" --report-dir "$UBOOT_TRAVIS_BUILD_DIR";
           # the below corresponds to .gitlab-ci.yml "after_script"
           rm -rf /tmp/uboot-test-hooks /tmp/venv
           EOF
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] Azure CI: Be explicit about pytest cache directory
  2023-02-28 20:28 [PATCH 1/2] Azure CI: Save pytest output automatically Tom Rini
@ 2023-02-28 20:28 ` Tom Rini
  2023-03-01 15:01   ` Simon Glass
  2023-03-22 14:37   ` Tom Rini
  2023-03-01 15:01 ` [PATCH 1/2] Azure CI: Save pytest output automatically Simon Glass
  2023-03-22 14:37 ` Tom Rini
  2 siblings, 2 replies; 6+ messages in thread
From: Tom Rini @ 2023-02-28 20:28 UTC (permalink / raw)
  To: u-boot

The default pytest cache directory is in a read-only directory in Azure,
which results in a warning on the build page. Use the pytest command
line option to set the cache dir to somewhere writable.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 .azure-pipelines.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 609020fa5498..e0c499f8a407 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -198,7 +198,7 @@ stages:
           export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
           export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
           # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
-          ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR" --report-dir "$UBOOT_TRAVIS_BUILD_DIR";
+          ./test/py/test.py -ra -o cache_dir="$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR" --report-dir "$UBOOT_TRAVIS_BUILD_DIR";
           # the below corresponds to .gitlab-ci.yml "after_script"
           rm -rf /tmp/uboot-test-hooks /tmp/venv
           EOF
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] Azure CI: Save pytest output automatically
  2023-02-28 20:28 [PATCH 1/2] Azure CI: Save pytest output automatically Tom Rini
  2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
@ 2023-03-01 15:01 ` Simon Glass
  2023-03-22 14:37 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2023-03-01 15:01 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, 28 Feb 2023 at 13:29, Tom Rini <trini@konsulko.com> wrote:
>
> Enable use of the python-azurepipelines package which provides automatic
> formatting and uploading of the pytest output.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  .azure-pipelines.yml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>


>
> diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
> index f6609bbd6bd1..609020fa5498 100644
> --- a/.azure-pipelines.yml
> +++ b/.azure-pipelines.yml
> @@ -194,10 +194,11 @@ stages:
>            virtualenv -p /usr/bin/python3 /tmp/venv
>            . /tmp/venv/bin/activate
>            pip install -r test/py/requirements.txt
> +          pip install pytest-azurepipelines
>            export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
>            export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
>            # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
> -          ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
> +          ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR" --report-dir "$UBOOT_TRAVIS_BUILD_DIR";
>            # the below corresponds to .gitlab-ci.yml "after_script"
>            rm -rf /tmp/uboot-test-hooks /tmp/venv
>            EOF
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] Azure CI: Be explicit about pytest cache directory
  2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
@ 2023-03-01 15:01   ` Simon Glass
  2023-03-22 14:37   ` Tom Rini
  1 sibling, 0 replies; 6+ messages in thread
From: Simon Glass @ 2023-03-01 15:01 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, 28 Feb 2023 at 13:29, Tom Rini <trini@konsulko.com> wrote:
>
> The default pytest cache directory is in a read-only directory in Azure,
> which results in a warning on the build page. Use the pytest command
> line option to set the cache dir to somewhere writable.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  .azure-pipelines.yml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] Azure CI: Save pytest output automatically
  2023-02-28 20:28 [PATCH 1/2] Azure CI: Save pytest output automatically Tom Rini
  2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
  2023-03-01 15:01 ` [PATCH 1/2] Azure CI: Save pytest output automatically Simon Glass
@ 2023-03-22 14:37 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2023-03-22 14:37 UTC (permalink / raw)
  To: u-boot

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

On Tue, Feb 28, 2023 at 03:28:48PM -0500, Tom Rini wrote:

> Enable use of the python-azurepipelines package which provides automatic
> formatting and uploading of the pytest output.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] Azure CI: Be explicit about pytest cache directory
  2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
  2023-03-01 15:01   ` Simon Glass
@ 2023-03-22 14:37   ` Tom Rini
  1 sibling, 0 replies; 6+ messages in thread
From: Tom Rini @ 2023-03-22 14:37 UTC (permalink / raw)
  To: u-boot

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

On Tue, Feb 28, 2023 at 03:28:49PM -0500, Tom Rini wrote:

> The default pytest cache directory is in a read-only directory in Azure,
> which results in a warning on the build page. Use the pytest command
> line option to set the cache dir to somewhere writable.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-22 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28 20:28 [PATCH 1/2] Azure CI: Save pytest output automatically Tom Rini
2023-02-28 20:28 ` [PATCH 2/2] Azure CI: Be explicit about pytest cache directory Tom Rini
2023-03-01 15:01   ` Simon Glass
2023-03-22 14:37   ` Tom Rini
2023-03-01 15:01 ` [PATCH 1/2] Azure CI: Save pytest output automatically Simon Glass
2023-03-22 14:37 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.