Scriptworker

Latest version: v50.2.0

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

Scan your dependencies

Page 36 of 37

0.6.0

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

.. _added-77:

Added
~~~~~

- significant gpg support
- ability to create new gpg homedirs
- scriptworker now requires ``pexpect`` for gpg key signing
- docstrings!
- helper scripts to generate 1000 pubkeys and time importing them.
- added ``scriptworker.utils.rm`` as an ``rm -rf`` function

.. _changed-75:

Changed
~~~~~~~

- ``utils.makedirs`` now throws ``ScriptWorkerException`` if the path
exists and is not a directory or a softlink pointing to a directory.
- gpg functions now take a ``gpg_home`` kwarg to specify a different
homedir
- moved ``scriptworker.client.integration_create_task_payload`` into
``scriptworker.test``
- renamed ``scriptworker.util.get-_hash`` kwarg ``hash_type`` to
``hash_alg``
- renamed ``firefox_cot_schema.json`` to ``cot_v1_schema.json``; also,
the schema has changed.
- the chain of trust schema has changed to version 1.

.. _fixed-67:

Fixed
~~~~~

- pass a ``task`` to ``scriptworker.task.reclaimTask`` and exit the
loop if it doesn’t match ``context.task``
- we now verify that ``context.task`` is the same task we scheduled
``reclaim_task`` for.

.. _removed-32:

Removed
~~~~~~~

- Removed ``get_temp_creds_from_file``, since we’re not writing
``temp_creds`` to disk anymore
- Removed ``scriptworker.task.get_temp_queue``, since we already have
``context.temp_queue``
- Removed ``pytest-asyncio`` dependency. It doesn’t play well with
``pytest-xdist``.
- Removed ``scriptworker.task.get_temp_queue``; we can use
``context.temp_queue``
- Removed ``pytest-asyncio`` usage to try to use ``pytest-xdist``, then
turned that back off when it conflicted with the event loop

.. _section-126:

0.5.0

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

.. _added-78:

Added
~~~~~

- added ``firefox_cot_schema.json`` for firefox chain of trust
- added gpg signature creation + verification
- added chain of trust generation
- added ``scriptworker.task.worst_level`` function for determining
overall result of task

.. _changed-76:

Changed
~~~~~~~

- ``unsignedArtifacts`` url paths are now unquoted, so ``%2F`` becomes
``/``
- ``validate_task_schema`` renamed to ``validate_json_schema``
- write task log files directly to the ``task_log_dir``; this should be
a subdir of ``artifact_dir`` if we want them uploaded.
- ``ScriptWorkerException`` now has an ``exit_code`` of 5
(``internal-error``); ``ScriptWorkerRetryException`` now has an
``exit_code`` of 4 (``resource-unavailable``)
- moved ``tests`` directory to ``scriptworker/test``

.. _fixed-68:

Fixed
~~~~~

- Functions in ``test_config`` now ignore existing ``TASKCLUSTER_`` env
vars for a clean testing environment
- ``raise_future_exceptions`` no longer throws an exception for an
empty list of tasks
- Updated ``CONTRIBUTING.rst`` to reflect reality

.. _section-127:

0.4.0

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

.. _added-79:

Added
~~~~~

- add ``scriptworker.utils.filepaths_in_dir``
- added setup.cfg for wheels
- added ``scriptworker.client.validate_artifact_url``.
- added python-gnupg dependency

.. _changed-77:

Changed
~~~~~~~

- test files no longer use a test class.
- ``upload_artifacts`` now uploads files in subdirectories of
``artifact_dir``, preserving the relative paths.

.. _removed-33:

Removed
~~~~~~~

- Removed unneeded creds file generation.

.. _section-128:

0.3.0

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

.. _added-80:

Added
~~~~~

- Added ``requirements-*.txt`` files. The ``-prod`` files have pinned
versions+hashes, via ``reqhash``.
- Added ``raise_future_exceptions`` function from signingscript

.. _changed-78:

Changed
~~~~~~~

- Upload artifacts to public/env/\ ``filename``.
- Enabled coverage branches in testing.
- Enabled environment variable configuration for credentials+workerid
- Moved source repo to
`mozilla-releng/scriptworker <https://github.com/mozilla-releng/scriptworker>`__
- No longer prepend stderr log lines with ERROR
- Reduced debug logging

.. _fixed-69:

Fixed
~~~~~

- Tweaked the config defaults to be a bit more sane.
- Fixed an exception where automated processes without HOME set would
fail to launch scriptworker

.. _removed-34:

Removed
~~~~~~~

- Removed ``scheduler_id`` from config; it’s only used to schedule
integration tests.

.. _section-129:

0.2.1

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

.. _fixed-70:

Fixed
~~~~~

- ``upload_artifacts`` now specifies a ``content_type`` of
``text/plain`` for the task logfiles, to fix linux uploading.

.. _section-130:

0.2.0

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

.. _changed-79:

Changed
~~~~~~~

- Context now has a ``claim_task`` property that stores the output from
``claimTask``. ``Context.task`` is now the task definition itself.
- ``scriptworker.utils.request`` now takes additional kwargs to be a
more versatile function.

.. _section-131:

Page 36 of 37

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.