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

Train models on TaskCluster whenever their corresponding files are modified #3688

Closed
suhaibmujahid opened this issue Oct 3, 2023 · 3 comments · Fixed by #3748
Closed

Train models on TaskCluster whenever their corresponding files are modified #3688

suhaibmujahid opened this issue Oct 3, 2023 · 3 comments · Fixed by #3748

Comments

@suhaibmujahid
Copy link
Member

Whenever a file in the bugbug/models directory is modified, we could have a task to train the corresponding model.

For example, if a new Pull Request is modifying the bugbug/models/defect.py file, the task should train the defect model:

python -m scripts.trainer defect
@marco-c
Copy link
Collaborator

marco-c commented Oct 3, 2023

As a first step, we could build a script to do this "manually" and not on PRs (doing it on PRs might be a bit complicated, as we need to run the whole pipeline to be able to train a model)

@suhaibmujahid
Copy link
Member Author

It would be nice if we could trigger TaskCluster training using the same script with an optional argument.

Example:

python -m scripts.trainer defect --taskcluster

@suhaibmujahid
Copy link
Member Author

As suggested by Marco, we could use TaskCluster API to replicate creating a task like https://community-tc.services.mozilla.com/tasks/RpQqfhKgT6GTlvOmK9i_vw/runs/0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants