Merge ~kaxing/hwcert-tools:check-before-push into hwcert-tools:master

Proposed by Yung Shen
Status: Merged
Approved by: Yung Shen
Approved revision: 790d6ddb9c17487a04a49699450792a580ebba5c
Merged at revision: 790d6ddb9c17487a04a49699450792a580ebba5c
Proposed branch: ~kaxing/hwcert-tools:check-before-push
Merge into: hwcert-tools:master
Diff against target: 76 lines (+29/-13)
1 file modified
sru_tools/manage_sru (+29/-13)
Reviewer Review Type Date Requested Status
Yung Shen (community) Approve
Review via email: mp+298084@code.qastaging.launchpad.net

Description of the change

I would like to automate following task:
copy and rename test report on people.canonical.com while publishing result within 'manage_sru publish'.

It's actually quite straight forward until following restrictions:
1. only certification@lauma are able to 'scp' to hwcert@people, and 'ssh' won't work.
2. 'manage_sru' uses lauchpadlib that keeps credential per application on Launchpad.net;
There is a possibility that we could give each manage_sru-`$USER` as different application, but then I don't think it's ideal to keep all credential under /home/certification, too.
3. users in certification groups on lauma had limited 'su' usage, it's not possible to do 'su - certification -c some_commands'.

While bypassing above limits, my approach is to show an assisted instruction that gives copy-paste-then-run ease on this task, as semi-automated, please check detail workflow in _push_file().

To post a comment you must log in.
Revision history for this message
Yung Shen (kaxing) wrote :

Self-approving, had been used in couple cycles.

review: Approve

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches