Scriptworker

Latest version: v60.4.0

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 28 of 37

9.0.0

--------------------

.. _added-44:

Added
~~~~~

- added support for bouncer scriptworker

.. _changed-39:

Changed
~~~~~~~

- renamed ``run_loop`` to ``run_tasks``
- ``run_tasks`` now shuts down gracefully after receiving a SIGTERM: it
finishes the current task(s), and exits.

.. _fixed-36:

Fixed
~~~~~

- ``run_tasks`` now sleeps 5 if there were no tasks claimed.

.. _section-80:

8.1.1

--------------------

.. _fixed-37:

Fixed
~~~~~

- Freeze aiohttp to 2.x.y

.. _section-81:

8.1.0

--------------------

.. _added-45:

Added
~~~~~

- ``valid_vcs_rules``, ``source_env_prefix``,
``extra_run_task_arguments`` depend on ``cot_product``
- ``cot_product`` is defined in example configuration
- Support for ship-it tasks

.. _section-82:

8.0.0

--------------------

.. _added-46:

Added
~~~~~

- Added ``scriptworker.cot.verify.get_jsone_template``, because action
tasks use actions.json instead of .taskcluster.yml

.. _changed-40:

Changed
~~~~~~~

- Added a ``tasks_for`` argument to ``populate_jsone_context``.
- Used ``format_json`` instead of ``pprint.pformat`` in most
``scriptworker.cot.verify`` functions.

.. _removed-17:

Removed
~~~~~~~

- Removed ``scriptworker.utils.render_jsone``, since it reduced to a
``jsone.render`` call.
- Removed the now-unused
``scriptworker.constants.max_jsone_iterations``

.. _section-83:

7.0.0

--------------------

.. _added-47:

Added
~~~~~

- Added ``scriptworker.cot.verify.verify_parent_task_definition``. This
is the core change in this release, aka CoT version 2. We now use
json-e to rebuild the decision/action task definitions from the tree.
- Added ``json-e`` and ``dictdiffer`` dependencies.
- ``arrow``, ``certifi``, ``multidict``, ``taskcluster``, and ``yarl``
have updated their major version numbers.
- Added ``Context.projects`` and ``Context.populate_projects``.
- Added ``load_json_or_yaml_from_url``.
- Added ``DEFAULT_CONFIG['cot_version']`` and
``DEFAULT_CONFIG['min_cot_version']``; this is cotv2. If
``min_cot_version`` is 1, we allow for falling back to the old cot v1
logic.
- Added ``DEFAULT_CONFIG['project_configuration_url']`` and
``DEFAULT_CONFIG['pushlog_url']``.
- Added ``scriptworker.task.KNOWN_TASKS_FOR``,
``scriptworker.task.get_action_name``,
``scriptworker.task.get_commit_message``,
``scriptworker.task.get_and_check_project``,
``scriptworker.task.get_and_check_tasks_for``
- Added ``scriptworker.utils.remove_empty_keys`` since the taskgraph
drops key/value pairs where the value is empty. See
https://github.com/taskcluster/json-e/issues/223
- Added ``scriptworker.utils.render_jsone`` to generically render
json-e.
- Added ``max_jsone_iterations`` pref; sometimes the values to replace
template values are several layers deep.
- Added ``scriptworker.cot.verify.get_pushlog_info``,
``scriptworker.cot.verify.get_scm_level``,
``scriptworker.cot.verify.populate_jsone_context``, and
``scriptworker.cot.verify.compare_jsone_task_definition``.
- Added test files to ``scriptworker/test/data/cotv2/``.

.. _changed-41:

Changed
~~~~~~~

- Renamed ``load_json`` to ``load_json_or_yaml``. This now takes a
``file_type`` kwarg that defaults to ``json``.
- Moved ``get_repo``, ``get_revision``, ``is_try``, and ``is_action``
from ``scriptworker.cot.verify`` to ``scriptworker.task``
- Moved the sub-function path callback from ``scriptworker.cot.verify``
to ``scriptworker.utils.match_url_path_callback``
- ``scriptworker.cot.verify.guess_task_type`` takes a 2nd arg,
``task_defn``, to differentiate action tasks from decision/cron
tasks.
- ``scriptworker.cot.verify.get_all_artifacts_per_task_id`` adds
``public/actions.json`` and ``public/parameters.yml`` to decision
task artifacts to download, for action task verification.
- Removed the ``firefox`` from ``scriptworker.cot.verify`` function
names.
- Tweaked the task ID logging in ``verify_cot``.

.. _fixed-38:

Fixed
~~~~~

- Updated ``path_regexes`` to identify most (all?) valid hg.m.o repo
paths, instead of returning ``None``.

.. _removed-18:

Removed
~~~~~~~

- Removed ``scriptworker.cot.verify.verify_decision_task`` and
``scriptworker.cot.verify.verify_action_task`` in favor of
``scriptworker.cot.verify.verify_parent_task``.

.. _section-84:

6.0.2

--------------------

.. _added-48:

Added
~~~~~

- ``max_chain_length`` pref, defaulting to the arbitrary (but larger
than the current 5) int 20.

.. _changed-42:

Changed
~~~~~~~

- Stopped hardcoding the max chain length to 5 due to longer-than-5
valid chains in production.

.. _section-85:

Page 28 of 37

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.