Project

General

Profile

Actions

action #56495

closed

coordination #56477: Implement notifications in case specific files were changed in PR

[functional][y] Develop GitHub App to notify in PR if staging files were modified

Added by oorlov over 5 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
SUSE QA (private) - Milestone 30+
Start date:
2019-09-05
Due date:
% Done:

0%

Estimated time:
5.00 h

Description

Previous investigations and found limitations

The initial task was to Implement hint to trigger VR for staging in case modules used there are changed in the PR. We investigated 3 solutions (use Travis, use internal Jenkins, and use external Jenkins) to make the notifications as comment and find out the following limitations:

  • "Encrypted environment variables are not available to pull requests from forks due to the security risk of exposing such information to unknown code." (https://docs.travis-ci.com/user/environment-variables/). So that we are not able to provide github token to make a comment as expected in the Pull request from oorlov;
  • Internal Jenkins cannot be triggered by GitHub Webhook as it is not visible from the outside. Running cron job with some interval requires to check all the PRs every time and decide if the message should be put or not;
  • External Jenkins requires node to be located on physical machine in DMZ;
  • And finally, solution with posting a comment in PR requires special email to be created (in @suse.de or @suse.com domain) and GitHub account for the bot.

The Solution:

GitHub Checks API.
PROS:

  • No special email/GitHub account required;
  • Executed only when PR is triggered;
  • Posting notifications to Check area which is not spamming with a comment;
  • Just elegant and rather modern solution:)

Pre-requisites:

We've managed to get external server. Please collaborate with oorlov, as he has access to the server. This also can be used to test the app during the development. Or any other instance, e.g. EC2 micro are free for a year for new registrations.

Acceptance Criteria:

  1. GitHub App is running on the external server;
  2. The app is registered in os-autoinst/os-autoinst-distri-opensuse repo as GitHub App;
  3. It sends notification on PR if staging files were changed and asks to provide a verification run.
Actions #1

Updated by riafarov about 5 years ago

  • Due date set to 2019-10-08
Actions #2

Updated by riafarov about 5 years ago

  • Target version set to Milestone 30+
Actions #3

Updated by riafarov about 5 years ago

  • Description updated (diff)
  • Status changed from New to Workable
  • Estimated time set to 13.00 h
Actions #4

Updated by JERiveraMoya about 5 years ago

  • Due date changed from 2019-10-08 to 2019-10-22
Actions #5

Updated by oorlov about 5 years ago

  • Assignee set to oorlov
Actions #6

Updated by oorlov about 5 years ago

  • Status changed from Workable to In Progress
Actions #7

Updated by riafarov about 5 years ago

  • Due date changed from 2019-10-22 to 2019-11-05
  • Estimated time deleted (13.00 h)

We know what is required to configure server for the app. Getting changed files is done
Remaining: get files to compare if staging tests were modified + propogating status to the PR.

Actions #8

Updated by riafarov about 5 years ago

  • Estimated time set to 5.00 h
Actions #9

Updated by riafarov about 5 years ago

  • Status changed from In Progress to Resolved

Alex will create follow-up ticket as we need to do more research.

Actions #10

Updated by okurz over 3 years ago

  • Due date deleted (2019-11-05)
Actions

Also available in: Atom PDF