← Back to team overview

canonical-ubuntu-qa team mailing list archive

Re: [Merge] ~andersson123/qa-jenkins-jobs:daily_charmcraft_build into qa-jenkins-jobs:master

 


Diff comments:

> diff --git a/jobs/autopkgtest-cloud/jobs.yaml b/jobs/autopkgtest-cloud/jobs.yaml
> index c71fea4..91a0fb8 100644
> --- a/jobs/autopkgtest-cloud/jobs.yaml
> +++ b/jobs/autopkgtest-cloud/jobs.yaml
> @@ -15,6 +15,38 @@
>  # You should have received a copy of the GNU General Public License along
>  # with this program.  If not, see <http://www.gnu.org/licenses/>.
>  
> +- job:
> +    name: daily-charmcraft-pack-check
> +    description: |
> +        Runs a daily charmcraft pack for autopkgtest-cloud-worker and
> +        autopkgtest-web charms to check for changes in external
> +        dependencies breaking the charms.
> +    triggers:
> +        - timed: '0 23 * * *'
> +    builders:
> +        - clear-artifacts:
> +        - shell: |
> +            #!/bin/bash
> +            # node needs to be 20.04 i think

I got it now: the reason is --destructive-mode. Let's not use that (see other comment below).

> +            export http_proxy="http://squid.internal:3128";
> +            export https_proxy="http://squid.internal:3128";
> +            export no_proxy=launchpad.net
> +
> +            sudo snap install charmcraft --classic
> +
> +            git clone https://git.launchpad.net/autopkgtest-cloud
> +            cd autopkgtest-cloud || exit 1
> +            # charmcraft pack -v -p charms/focal/autopkgtest-cloud-worker/
> +            # charmcraft pack -v -p charms/focal/autopkgtest-web/
> +            charmcraft pack --destructive-mode -v -p charms/focal/autopkgtest-cloud-worker/
> +            charmcraft pack --destructive-mode -v -p charms/focal/autopkgtest-web/

EDIT: drop these with --destructive-mode and let use LXD.

> +            if test -f "autopkgtest-cloud-worker_ubuntu-20.04-amd64.charm" && test -f "autopkgtest-web_ubuntu-20.04-amd64.charm"; then
> +                printf "Charms built successfully"
> +            else
> +                printf "Charms didn't build!"
> +                exit 1
> +            fi
> +
>  
>  - job:
>      name: autopkgtest-cloud-rtd-build-trigger


-- 
https://code.launchpad.net/~andersson123/qa-jenkins-jobs/+git/qa-jenkins-jobs/+merge/444059
Your team Canonical Platform QA Team is subscribed to branch qa-jenkins-jobs:master.



References