Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate watch option for auto TRSS server restart #654

Closed
3 tasks done
llxia opened this issue May 4, 2022 · 2 comments
Closed
3 tasks done

Investigate watch option for auto TRSS server restart #654

llxia opened this issue May 4, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@llxia
Copy link
Contributor

llxia commented May 4, 2022

We would like to have a scheduled Jenkins job to update the TRSS code automatically. See instructions.

Currently, sudo right is needed to restart the service at production. Since it is not recommended for the Jenkins node to run using sudo, we will look into watch option for auto TRSS server restart via forever.

TODO:

  • add TRSS as Jenkins node
  • configure watch option on the production server
  • create Jenkins job to update the code on the production server
@llxia llxia added the enhancement New feature or request label May 5, 2022
@llxia llxia self-assigned this May 9, 2022
@smlambert
Copy link
Contributor

There is now a way forward using the watch option. Adding this note, as progress on this issue was blocking us from adding TRSS as a Jenkins node. The gist of it is that the watch option, set to watch updates to certain folders of TRSS can the be used to update the service (no root access is required for this).

While this does not cover the case of a full restart or fresh install, it does allow us to have regularly scheduled job to keep TRSS up-to-date with what is in the codebase (via git update command).

llxia added a commit to llxia/aqa-test-tools that referenced this issue Jun 16, 2022
related: adoptium#654
Signed-off-by: lanxia <lan_xia@ca.ibm.com>
llxia added a commit to llxia/aqa-test-tools that referenced this issue Jun 16, 2022
related: adoptium#654
Signed-off-by: lanxia <lan_xia@ca.ibm.com>
@llxia
Copy link
Contributor Author

llxia commented Jun 17, 2022

TRSS server update:

  • recreated forever services to watch /data/jenkins/aqa-test-tools/TestResultSummaryService dir changes
  • updated all references to /data/jenkins/aqa-test-tools in nginx (instead of /home/jenkins/openjdk-test-tools)
  • Jenkins job is created for pulling TRSS changes: https://ci.adoptopenjdk.net/job/TRSS_Code_Sync/ (scheduled to run every Fridays at noon)

smlambert pushed a commit that referenced this issue Jun 17, 2022
related: #654
Signed-off-by: lanxia <lan_xia@ca.ibm.com>
@llxia llxia closed this as completed Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants