Create a repository on gitlab for wikiGPT and figure out a way to update the app whenever we merge new code
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T328494 WikiGPT Experiment | |||
Resolved | isarantopoulos | T329028 Create repository for WikiGPT |
Event Timeline
Related, are there also plans to create a dedicated Phabricator project tag for this codebase?
Created the repository https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt through toolforge UI and added the code that is checked out (everything except the secrets and the database).
For now if one wants to update the app they should do the following:
- Merge some code or Merge Request on the main branch
- ssh into toolforge, become wiki-gpt and navigate to the directory www/python/src and run git pull origin main
isaranto opened https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt/-/merge_requests/6
Add pre-commit checks to CI
isaranto opened https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt/-/merge_requests/7
Add ml group as CODEWONERS
isaranto merged https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt/-/merge_requests/6
Add pre-commit checks to CI
isaranto merged https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt/-/merge_requests/7
Add ml group as CODEWONERS
isaranto merged https://gitlab.wikimedia.org/toolforge-repos/wiki-gpt/-/merge_requests/8
automatically sync code on toolforge
Created a repo that has the following:
- has a CI pipeline for Merge requests that runs precommit command for python, css and javascript files
- has a webhook that syncs code to the toolforge app whenever a new commit is merged to master
Keep in mind that in order for new changes to take effect the webservice on toolforge has to be restarted each time.
Added some documentation on Wikitech about how to setup a python webhook for a toolforge app in Github/GitLab https://wikitech.wikimedia.org/wiki/Help:Toolforge/Auto-update_a_tool_from_GitHub/GitLab#Python_tool_hosted_in_$HOME/www/python/src