From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E9E2A427E2 for ; Mon, 20 Mar 2023 14:46:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5F58406BC; Mon, 20 Mar 2023 14:46:26 +0100 (CET) Received: from mail-oa1-f97.google.com (mail-oa1-f97.google.com [209.85.160.97]) by mails.dpdk.org (Postfix) with ESMTP id DB1C6406BC for ; Mon, 20 Mar 2023 14:46:24 +0100 (CET) Received: by mail-oa1-f97.google.com with SMTP id 586e51a60fabf-1755e639b65so13099963fac.3 for ; Mon, 20 Mar 2023 06:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1679319984; h=date:message-id:cc:to:from:subject:from:to:cc:subject:date :message-id:reply-to; bh=4ZiSuw51znGUQVsHv17ycqmxIJD6wBj2CtfK0NQ4h+Q=; b=Ku60u7YqPvakv+41VNpuvrVgcXulRY8WSJSM94dQ8v8kWVPj1YTbMaTld2CLEJl9BX QW46ZpaaGl+PgxUHe4l9VEKenf1f++e4aYnoNNsbKOBtYrZuq52B3QHn/48GUFDKuTDp eVZn6vPiOs3EONOGpmh9nZ38dUuD05i3qJy2Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679319984; h=date:message-id:cc:to:from:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4ZiSuw51znGUQVsHv17ycqmxIJD6wBj2CtfK0NQ4h+Q=; b=c7yaoFwCG2hrVoN+PsLhThIoM/6OP3DUiy9VsLDd4ViZb6kFkNPxhO8L+v0Mif7/VB RE+ttrd8KufFlWFLPPKmBrlMCOLcXIyyaSmjzpqsQBjguv6d/SVBLSAesB5AS08R9dYX BsDAxmiklWjmOVqxplYmOncohoXkgtmJF9UnMO4elhNfDaeH5Jek2nIimXOkJxWZ7eWy LnGDZsx3bmukgPW8FREloieqq2mAaKimhWOlqyEYXOb6vHTtS91QlHUEaj0gMYSbBNrB D+Wm2wKUx1wmes/YPBAUfABAA+Qpe9cOC5gBBvlalGqVCc+do9trbC/wrslbS0f5IktB Gxmw== X-Gm-Message-State: AO0yUKWhZCfJ1az6hshD1RStJRQf31hltYPm4yL2Y1ycBGzF9BhT/MhH 6dAxg8rgZO5dkhFoG+MmlyrswEdstm6cogtSIPrrt3UOz1Sg/JXpAI3nVQ== X-Google-Smtp-Source: AK7set8tcudEFcNj1jxJzem/BvAm2oDWYwJs7HXn8ZQo7TkRQp3gQa9yaRLhTx6/6P1hjeqz1+rAzCrQS+cK X-Received: by 2002:a05:6870:659f:b0:172:8941:f360 with SMTP id fp31-20020a056870659f00b001728941f360mr4333181oab.4.1679319984203; Mon, 20 Mar 2023 06:46:24 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id bq11-20020a056830388b00b0069f684d3335sm64528otb.9.2023.03.20.06.46.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Mar 2023 06:46:24 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from dpdk-ubuntu.dpdklab.iol.unh.edu (unknown [172.18.0.210]) by postal.iol.unh.edu (Postfix) with ESMTP id A5C7F605246B; Mon, 20 Mar 2023 09:46:23 -0400 (EDT) Received: from dpdk-ubuntu-2.dpdklab.iol.unh.edu (localhost [IPv6:::1]) by dpdk-ubuntu.dpdklab.iol.unh.edu (Postfix) with ESMTP id 9925960214; Mon, 20 Mar 2023 13:46:23 +0000 (UTC) Subject: |WARNING| pw125315-125316 [PATCH] [v2, 2/2] ci: test compilation with debug in GHA From: dpdklab@iol.unh.edu To: test-report@dpdk.org Cc: dpdk-test-reports@iol.unh.edu Content-Type: text/plain Message-Id: <20230320134623.9925960214@dpdk-ubuntu.dpdklab.iol.unh.edu> Date: Mon, 20 Mar 2023 13:46:23 +0000 (UTC) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: iol-testing Test-Status: WARNING http://dpdk.org/patch/125315 _apply patch failure_ Submitter: David Marchand Date: Monday, March 20 2023 12:18:33 Applied on: CommitID:56de01c119381f82baef819184a8dba36ea9c333 Apply patch set 125315-125316 failed: Checking patch app/test-mldev/test_inference_common.c... error: while searching for: */ #include #include #include error: patch failed: app/test-mldev/test_inference_common.c:3 error: while searching for: struct test_inference *t = ml_test_priv((struct ml_test *)opaque); struct ml_request *req = (struct ml_request *)obj; struct ml_model *model = &t->model[req->fid]; char str[PATH_MAX]; bool error = false; RTE_SET_USED(mp); error: patch failed: app/test-mldev/test_inference_common.c:901 error: while searching for: dump_output_pass: if (obj_idx == 0) { /* write quantized output */ snprintf(str, PATH_MAX, "%s.q", t->cmn.opt->filelist[req->fid].output); ML_OPEN_WRITE_GET_ERR(str, req->output, model->out_qsize, error); if (error) return; /* write dequantized output */ snprintf(str, PATH_MAX, "%s", t->cmn.opt->filelist[req->fid].output); ML_OPEN_WRITE_GET_ERR(str, model->output, model->out_dsize, error); if (error) return; } error: patch failed: app/test-mldev/test_inference_common.c:926 error: while searching for: dump_output_fail: if (t->cmn.opt->debug) { /* dump quantized output buffer */ snprintf(str, PATH_MAX, "%s.q.%d", t->cmn.opt->filelist[req->fid].output, obj_idx); ML_OPEN_WRITE_GET_ERR(str, req->output, model->out_qsize, error); if (error) return; /* dump dequantized output buffer */ snprintf(str, PATH_MAX, "%s.%d", t->cmn.opt->filelist[req->fid].output, obj_idx); ML_OPEN_WRITE_GET_ERR(str, model->output, model->out_dsize, error); if (error) return; } error: patch failed: app/test-mldev/test_inference_common.c:943 Applying patch app/test-mldev/test_inference_common.c with 4 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. Rejected hunk #4. hint: Use 'git am --show-current-patch' to see the failed patch diff a/app/test-mldev/test_inference_common.c b/app/test-mldev/test_inference_common.c (rejected hunks) @@ -3,6 +3,7 @@ */ #include +#include #include #include @@ -901,8 +902,8 @@ ml_request_finish(struct rte_mempool *mp, void *opaque, void *obj, unsigned int struct test_inference *t = ml_test_priv((struct ml_test *)opaque); struct ml_request *req = (struct ml_request *)obj; struct ml_model *model = &t->model[req->fid]; - char str[PATH_MAX]; bool error = false; + char *dump_path; RTE_SET_USED(mp); @@ -926,14 +927,18 @@ ml_request_finish(struct rte_mempool *mp, void *opaque, void *obj, unsigned int dump_output_pass: if (obj_idx == 0) { /* write quantized output */ - snprintf(str, PATH_MAX, "%s.q", t->cmn.opt->filelist[req->fid].output); - ML_OPEN_WRITE_GET_ERR(str, req->output, model->out_qsize, error); + if (asprintf(&dump_path, "%s.q", t->cmn.opt->filelist[req->fid].output) == -1) + return; + ML_OPEN_WRITE_GET_ERR(dump_path, req->output, model->out_qsize, error); + free(dump_path); if (error) return; /* write dequantized output */ - snprintf(str, PATH_MAX, "%s", t->cmn.opt->filelist[req->fid].output); - ML_OPEN_WRITE_GET_ERR(str, model->output, model->out_dsize, error); + if (asprintf(&dump_path, "%s", t->cmn.opt->filelist[req->fid].output) == -1) + return; + ML_OPEN_WRITE_GET_ERR(dump_path, model->output, model->out_dsize, error); + free(dump_path); if (error) return; } @@ -943,14 +948,20 @@ ml_request_finish(struct rte_mempool *mp, void *opaque, void *obj, unsigned int dump_output_fail: if (t->cmn.opt->debug) { /* dump quantized output buffer */ - snprintf(str, PATH_MAX, "%s.q.%d", t->cmn.opt->filelist[req->fid].output, obj_idx); - ML_OPEN_WRITE_GET_ERR(str, req->output, model->out_qsize, error); + if (asprintf(&dump_path, "%s.q.%u", t->cmn.opt->filelist[req->fid].output, + obj_idx) == -1) + return; + ML_OPEN_WRITE_GET_ERR(dump_path, req->output, model->out_qsize, error); + free(dump_path); if (error) return; /* dump dequantized output buffer */ - snprintf(str, PATH_MAX, "%s.%d", t->cmn.opt->filelist[req->fid].output, obj_idx); - ML_OPEN_WRITE_GET_ERR(str, model->output, model->out_dsize, error); + if (asprintf(&dump_path, "%s.%u", t->cmn.opt->filelist[req->fid].output, + obj_idx) == -1) + return; + ML_OPEN_WRITE_GET_ERR(dump_path, model->output, model->out_dsize, error); + free(dump_path); if (error) return; } Checking patch .ci/linux-build.sh... error: while searching for: cross_file=config/riscv/riscv64_linux_gcc fi if [ "$BUILD_DOCS" = "true" ]; then OPTS="$OPTS -Denable_docs=true" fi error: patch failed: .ci/linux-build.sh:65 error: while searching for: OPTS="$OPTS -Dplatform=generic" OPTS="$OPTS -Ddefault_library=$DEF_LIB" OPTS="$OPTS -Dbuildtype=debugoptimized" OPTS="$OPTS -Dcheck_includes=true" if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" error: patch failed: .ci/linux-build.sh:85 Checking patch .github/workflows/build.yml... error: while searching for: ABI_CHECKS: ${{ contains(matrix.config.checks, 'abi') }} ASAN: ${{ contains(matrix.config.checks, 'asan') }} BUILD_32BIT: ${{ matrix.config.cross == 'i386' }} BUILD_DOCS: ${{ contains(matrix.config.checks, 'doc') }} CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} error: patch failed: .github/workflows/build.yml:18 error: while searching for: mini: mini - os: ubuntu-20.04 compiler: gcc checks: abi+doc+tests - os: ubuntu-20.04 compiler: clang checks: asan+doc+tests error: patch failed: .github/workflows/build.yml:39 Applying patch .ci/linux-build.sh with 2 rejects... Rejected hunk #1. Rejected hunk #2. Applying patch .github/workflows/build.yml with 2 rejects... Rejected hunk #1. Rejected hunk #2. hint: Use 'git am --show-current-patch' to see the failed patch diff a/.ci/linux-build.sh b/.ci/linux-build.sh (rejected hunks) @@ -65,6 +65,12 @@ if [ "$RISCV64" = "true" ]; then cross_file=config/riscv/riscv64_linux_gcc fi +buildtype=debugoptimized + +if [ "$BUILD_DEBUG" = "true" ]; then + buildtype=debug +fi + if [ "$BUILD_DOCS" = "true" ]; then OPTS="$OPTS -Denable_docs=true" fi @@ -85,7 +91,7 @@ fi OPTS="$OPTS -Dplatform=generic" OPTS="$OPTS -Ddefault_library=$DEF_LIB" -OPTS="$OPTS -Dbuildtype=debugoptimized" +OPTS="$OPTS -Dbuildtype=$buildtype" OPTS="$OPTS -Dcheck_includes=true" if [ "$MINI" = "true" ]; then OPTS="$OPTS -Denable_drivers=net/null" diff a/.github/workflows/build.yml b/.github/workflows/build.yml (rejected hunks) @@ -18,6 +18,7 @@ jobs: ABI_CHECKS: ${{ contains(matrix.config.checks, 'abi') }} ASAN: ${{ contains(matrix.config.checks, 'asan') }} BUILD_32BIT: ${{ matrix.config.cross == 'i386' }} + BUILD_DEBUG: ${{ contains(matrix.config.checks, 'debug') }} BUILD_DOCS: ${{ contains(matrix.config.checks, 'doc') }} CC: ccache ${{ matrix.config.compiler }} DEF_LIB: ${{ matrix.config.library }} @@ -39,7 +40,7 @@ jobs: mini: mini - os: ubuntu-20.04 compiler: gcc - checks: abi+doc+tests + checks: abi+debug+doc+tests - os: ubuntu-20.04 compiler: clang checks: asan+doc+tests https://lab.dpdk.org/results/dashboard/patchsets/25801/ UNH-IOL DPDK Community Lab