[meta] refactor scripts to stop importing scriptworker, start importing scriptworker_client
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
Piste de recherche
Commencez par localiser les scripts qui importent scriptworker et comparez leurs points d’entrée en ligne de commande avec ceux de scriptworker_client. Lisez la page wiki Testing iscript et ses indications concernant create_test_workdir pour l’exécution autonome. Le travail est terminé lorsque les scripts ne dépendent plus des objets de contexte de scriptworker, tout en préservant l’API en ligne de commande.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Part of the rationale of having scriptworker call a script from the commandline, rather than import a python module and call a function, was to make the script independent of scriptworker. In theory this would:
- let us upgrade scriptworker without affecting scripts, as long as that commandline api stayed consistent,
- allow us to test scripts standalone, rather than requiring the worker,
- allow for a mixture of languages and python versions
(3) is currently no longer an issue. We've standardized on python 3. However, we still have the option of supporting other languages, especially if some other team wants to start using scriptworkers.
(2) has been theoretical, and still has some issues with user friendliness and discoverability. The testing iscript wiki page shows it's possible to test a script without scriptworker, especially when using the create_test_workdir script from scriptworker to populate the work_dir with a known task's task.json and CoT upstreamArtifacts.
The main thing we're solving here is (1). Because many scripts import scriptworker, upgrading scriptworker may still break those scripts, even if the commandline api stays consistent. Let's import scriptworker_client instead.
Doing so isn't just a simple drop-in replacement, however. scriptworker_client removes the usage of context objects, so this may be a sizeable patch set per script. But once we do this, we'll once more be able to upgrade scriptworker without fear of breaking the script, and we will be able to make all script-related changes in this repo rather than across two repos. (And the vocal opponents to the context objects will be appeased. :)
- Langage dominant
- Python
- Étoiles
- 16
- Forks
- 38
- Merge moyen
- 13 h 21 min
- PR mergées (30 j)
- 17
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de mozilla-releng/scriptworker-scripts
-
Dependency DashboardOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
mozilla-releng/scriptworker-scripts#1321 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
mozilla-releng/scriptworker-scripts#1109 ·
Les mainteneurs répondent en général sous 1 jour
-
treescript
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
mozilla-releng/scriptworker-scripts#1055 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
mozilla-releng/scriptworker-scripts#994 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
mozilla-releng/scriptworker-scripts#980 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de mozilla-releng/scriptworker-scripts
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Graphify-Labs/graphify#4524 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
topoteretes/cognee#5982 ·
Les mainteneurs répondent en général sous 1 jour
-
Patches of derivations with `__structuredAttrs` are ignoredPeut-être pris @KiaraGrouwstra l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 81/100
nix-community/vulnix#184 ·
-
New InternshipOuvertenew_internship
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
aws-samples/sample-per-model-bedrock#295 ·
Les mainteneurs répondent en général sous 1 jour