Page MenuHomePhabricator

Move refinery HQL files to a new GitLab repository
Open, Needs TriagePublic

Description

We'd like to move HQL files out of Gerrit refinery repository into a separate, stand-alone HQL repository in GitLab. The primary motivator for this move is enabling automatic deployment to HDFS of any new updates to HQL, but there are other nice things we can gain from it too:

  • We might want to reuse the existing repo https://gitlab.wikimedia.org/repos/data-engineering/refinery-and-airflow-sql except we should probably rename it into something more generic like data-engineering-hql
  • Make sure we preserve git history during this migration
  • Enable Blunderbuss repository sync to HDFS on this new repo
  • Disable existing scap deployment to HDFS, update WikiTech docs
  • Enable SQLFluff linting
    • Have the existing HQL re-formatted to conform to SQLFluff linter rules to the furthest extent possible (some features we use might not be supported by SQLFluff)
    • Have all new HQL conform to these linter rules

Event Timeline

Yes it is. What's the recommended course of correction, delete the old one or subtask it to this one?

We'd like to take the HQL out of the refinery repository into a standalone repo we can deploy automatically.

Ottomata added subscribers: Snwachukwu, Antoine_Quhen.

(I closed the other one as duplicate since this task has more info and context).

We'd like to take the HQL out of the refinery repository into a standalone repo we can deploy automatically.

We can have our cake and eat it too. If we keep all job logic in one repository we get:

  • easier code discovery helps with onboarding and re-onboarding people like me that forget where everything is
  • easier pipeline refactoring
  • better cross-team collaboration, code sharing, library building

And deployment can be entirely separate from repository structure. So we'd have a specific CI/CD job for the /hql folder. That's the idea behind the gitlab refinery repo.