canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #05030
[Merge] ~andersson123/qa-jenkins-jobs:autodep8-branch-check into qa-jenkins-jobs:master
Tim Andersson has proposed merging ~andersson123/qa-jenkins-jobs:autodep8-branch-check into qa-jenkins-jobs:master.
Commit message:
add job which checks for updates in autodep8
the ubuntu release team has an autodep8 repository which is not synced
up to the source repository for autodep8.
autopkgtest.ubuntu.com uses the ubuntu-release autodep8 repository, and
it is imperative to keep this repository up to date with any changes
made to the source repository.
This commit thus adds another jenkins job which checks to see if the
diff from the latest commit on the ubuntu/devel branch of the source
repository for autodep8 is present in the ubuntu-release autodep8
repository.
It runs once a day, and sends an email to the Ubuntu Release Management
team if there are changes in the source repo that need to be present
in the ubuntu-release repo.
Requested reviews:
Brian Murray (brian-murray)
Canonical Platform QA Team (canonical-platform-qa)
For more details, see:
https://code.launchpad.net/~andersson123/qa-jenkins-jobs/+git/qa-jenkins-jobs/+merge/470567
Adds a job which notifies the Release Management Team if we need to update the ubuntu-release autodep8 repository with changes from the source repo
--
Your team Canonical Platform QA Team is requested to review the proposed merge of ~andersson123/qa-jenkins-jobs:autodep8-branch-check into qa-jenkins-jobs:master.
diff --git a/jobs/autopkgtest-cloud/jobs.yaml b/jobs/autopkgtest-cloud/jobs.yaml
index dfb2591..f94d5e4 100644
--- a/jobs/autopkgtest-cloud/jobs.yaml
+++ b/jobs/autopkgtest-cloud/jobs.yaml
@@ -91,3 +91,43 @@
else
printf "No changes to docs/ since latest build, not building\n"
fi
+
+- job:
+ name: autodep8-branch-check
+ description: |
+ Checks to see if there's been any recent commits to https://code.launchpad.net/~git-ubuntu-import/ubuntu/+source/autodep8/+git/autodep8/+ref/ubuntu/devel
+ send an email to the qa team if there has been
+ node: 'venonat'
+ triggers:
+ - timed: '@daily'
+ wrappers:
+ - workspace-cleanup
+ - timestamps
+ - timeout:
+ timeout: 5
+ fail: true
+ builders:
+ - clear-artifacts:
+ - shell: |
+ #!/bin/bash
+ git clone -b ubuntu/devel https://git.launchpad.net/ubuntu/+source/autodep8
+ cd autodep8
+ git remote add ubuntu-release https://git.launchpad.net/~ubuntu-release/+git/autodep8
+ git remote update ubuntu-release
+ source_commit=$(git rev-parse HEAD)
+ git checkout ubuntu-release/master
+ release_commit=$(git rev-parse HEAD)
+ git cherry-pick $source_commit --keep-redundant-commits
+ release_commit_after_cherry_pick=$(git rev-parse HEAD)
+ diff=$(git diff $release_commit_after_cherry_pick $release_commit)
+ echo "************************************************************************************"
+ if [ "$diff" == "" ]; then
+ echo "No diff from cherry picking commit from source, no update needed"
+ exit 0
+ fi
+ echo "There are changes in the autodep8 source which are not present in ubuntu-release"
+ echo "************************************************************************************"
+ exit 1
+ publishers:
+ - email:
+ recipients: florent.jacquet@xxxxxxxxxxxxx, brian@xxxxxxxxxxxxx, tim.andersson@xxxxxxxxxxxxx, paride.legovini@xxxxxxxxxxxxx, ural.tunaboyu@xxxxxxxxxxxxx