Runem

Latest version: v0.0.31

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

Scan your dependencies

Page 1 of 5

0.0.30

-------------------
- Release: version 0.0.30 🚀 [Frank Harrison]
- Merge pull request 47 from lursight/feat/git-fast-files. [Frank
Harrison]

Feat/git fast files
- Feat(git-files): adds -f and -h for handling changed files and head
files. [Frank Harrison]

This makes using runem for big projects MUCH more effecient.
- Chore(help): moves help switch from -h -> -H. [Frank Harrison]

This is so we can add `-h` as `HEAD files`
- Chore(error-reporting): adds warn() and error() logging types. [Frank
Harrison]
- Merge pull request 46 from lursight/chore/docs. [Frank Harrison]

Chore/docs
- Chore(test): adds a new e2e test for tags-to-ignore. [Frank Harrison]

Once again everything seems to be behaving properly.
- Chore(docs): annotates the tags-to-exclude test. [Frank Harrison]

I thought it was buggy, but we have another issue somewhere.
- Chore(docs): updates the core-goal in the README. [Frank Harrison]
- Chore(test): adds NUM CORES handling to tests. [Frank Harrison]
- Chore(coverage): fixes coverage warnings. [Frank Harrison]
- Merge pull request 45 from lursight/chore/update_deps. [Frank
Harrison]

updates deps
- Updates deps. [Frank Harrison]
- Merge pull request 44 from lursight/chore/update_py_black. [Frank
Harrison]

Chore/update py black
- Chore(black): updates formatting after upgrading black. [Frank
Harrison]
- Chore(deps): upgrades py-black following dependabot. [Frank Harrison]
- Merge pull request 43 from lursight/feat/user-local-hook_1st_pass.
[Frank Harrison]

Feat/user local hooks (1st pass)
- Feat(user-local-cfg): fixes for python 3.9 tests. [Frank Harrison]
- Feat(user-local-cfg): handles situations where jobs are in local
configs. [Frank Harrison]

... and phases are missing.
- Chore(docs): stop the help-text test being verbose. [Frank Harrison]

... it is unlikely that --help will be used in verbose mode... probs. Sigh.
- Feat(user-local-cfg): gets user- and local- configs working. [Frank
Harrison]
- Feat(user-local-cfg): splits the project loading into load and parse
phases. [Frank Harrison]

This is so we can use it to load user configs
- Feat(user-local-cfg): splits the config loading and the ConfigMetadata
construction functions. [Frank Harrison]

This allows re-using the parsing function for N files
- Feat(hooks): adds a hook system with support for ON_EXIT. [Frank
Harrison]

- we remove the deprecated function-type for jobs
- we add support for hooks
- add a hooks section to the .runem.yml reader
- add a on-exit hook to the runem project's .runem.yml
- Merge pull request 42 from lursight/feat/prettier_tree_graph. [Frank
Harrison]

Feat/prettier tree graph
- Feat(prettier-tree-report): changes how we index the leaver on the
report-tree. [Frank Harrison]

Basically removes the duplicate information, reducing visual noise,
especially after adding the variously shaded bar-graphs
- Chore(.runem): uses current best practise for accessing options in
runem's own jobs. [Frank Harrison]
- Chore(.runem): connects the unit-test option to the runem python
checks. [Frank Harrison]
- Chore(.runem): removes defunct options. [Frank Harrison]

These were left over from lursight's config
- Chore(.runem): rename switches for consistency. [Frank Harrison]
- Fix(pretty-tree): adds extra test for bar-graph chars. [Frank
Harrison]
- Chore: typo. [Frank Harrison]
- Merge pull request 41 from lursight/feat/prettier_tree_graph. [Frank
Harrison]

Feat/prettier tree graph
- Feat(tree-graph): hangs all tree leaves off of the runem.phases.
[Frank Harrison]
- Feat(tree-graph): adds runem-reports regression checks. [Frank
Harrison]

This means we can capture any changes if they happen to the layout of
the graph, as I intended to changed the layout next.
- Merge pull request 38 from
lursight/dependabot/github_actions/softprops/action-gh-release-2.
[Frank Harrison]

chore(deps): bump softprops/action-gh-release from 1 to 2
- Chore(deps): bump softprops/action-gh-release from 1 to 2.
[dependabot[bot]]

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
...

0.0.29

-------------------
- Release: version 0.0.29 🚀 [Frank Harrison]
- Merge pull request 40 from lursight/fix/time_saved. [Frank Harrison]

Fix/time saved
- Feat(prettier-bars): clarifies that total is user-space time. [Frank
Harrison]

... not wall-clock or system-time
- Feat(prettier-bars): distiguishes the wall-clock bars. [Frank
Harrison]

... from the total/sum and sub-job bars, so that it's slightly easier to
see where the time is being really spent.
- Fix(time-saved): clarifies which measurement is the wall-clock time
for the entire run. [Frank Harrison]
- Fix(time-saved): add message about how long we _would_ have waited
without runem. [Frank Harrison]
- Fix(time-saved): renames all variable associated with timing reports.
[Frank Harrison]

This just makes someting which can become intractable/confusing a lot
easier to follow.
- Fix(time-saved): check that time-saved is reported correctly. [Frank
Harrison]

Here we add a test first and then fix the missing math to calculate the
time-saved by using runem. We broke this in the previous feature for
rendering the tree slightly more elegantly.
- Feat(hide-single-leafs): only show the job when it has a single child.
[Frank Harrison]

We would get duplicated information for jobs which had single
run_command invocations. This only shows sub-tasks/jobs if there are
more than one sub-tasks meaning the output looks a lot nicer & clearer.
- Chore(deps): adds setuptools as a explicit dep. [Frank Harrison]

... otherwise we get the following error (more often in python 3.12),
perhaps due to setuptools being removed from distros?:

text
Traceback (most recent call last):
File "/var/www/mydir/virtualenvs/dev/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

- Merge pull request 39 from lursight/feat/time_all_run_command_calls.
[Frank Harrison]

Feat/time all run command calls
- Feat(pretty-tree): refactors out the phase-job report generator.
[Frank Harrison]

This is just to make pylint happy.
- Feat(pretty-tree): makes the report tree neater. [Frank Harrison]
- Feat(time-all-sub-tasks): re-raise errors for context in ci/cd. [Frank
Harrison]

In github ci/cd we were hitting the asserts but had no context of where
they're raised from or why. This should fix that if they still occur.
- Feat(time-all-sub-tasks): adds a test to test the time-recording
functions. [Frank Harrison]
- Feat(time-all-sub-tasks): adds all run_command times to report output.
[Frank Harrison]
- Chore(type): uses a type-alias instead of manual type. [Frank
Harrison]
- Merge pull request 37 from
lursight/dependabot/github_actions/actions/upload-artifact-4. [Frank
Harrison]

chore(deps): bump actions/upload-artifact from 3 to 4
- Chore(deps): bump actions/upload-artifact from 3 to 4.
[dependabot[bot]]

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
- Merge pull request 36 from lursight/chore/more_python_versions_in_ci.
[Frank Harrison]

Chore/more python versions in ci
- Chore(github-ci): workaround for python 3.12 setuptools issue. [Frank
Harrison]

This fies what looks like an issue with pytest hooks running ci/cd (and
on local machine) where we get:
ModuleNotFoundError: No module named 'pkg_resources'
- Chore(github-ci): updates the python `--help` tests for 3.11 (and
later) [Frank Harrison]
- Chore(github-ci): test python 3.9, 3.11 and 3.12 in ci. [Frank
Harrison]

We don't bother with 3.10 because we test 3.9 and boundaries for
features are on the 3.11 version.

We don't bother with earlier than 3.9, even though 3.8 is the earliest
officially supported version.

0.0.28

-------------------
- Release: version 0.0.28 🚀 [Frank Harrison]
- Merge pull request 35 from lursight/fix/aliases_not_setting_options.
[Frank Harrison]

Fix/aliases not setting options
- Switches the API so 'read-only' Options are the prominent type. [Frank
Harrison]

... and Writable are the recessive type, making it easier for API users to ensure they're using the correct type
- Uses OptionsReadOnly, stopping accidentally overwritting options by
individual jobs. [Frank Harrison]
- Adds a read-only version of the Options dict. [Frank Harrison]
- Ports Options type to an InformativeDict. [Frank Harrison]

This shows you what options are available in the options dict if you
look up a value that doesn't exist.
- Updates logging for clarity. [Frank Harrison]
- Merge pull request 34 from lursight/chore/github-actions. [Frank
Harrison]

Chore/GitHub actions
- Chore(github-ci): knocks out windows ci/cd for now. [Frank Harrison]
- Chore(github-ci): sets the windows ci to use utf-8. [Frank Harrison]
- Chore(github-ci): HACK ignore coverage in tested code. [Frank
Harrison]

It's not cler why the ci/cd thinks this isn't being hit, it is locally
and I can't figure out why it wouldn't be on the ci/cd, perhaps it's
down to the multithreaded pytest runs, but that would be
non-deterministic. This will probably need looking into at some point.
- Chore(ci-coverage): updates the _get_jobs_matching test case. [Frank
Harrison]

Making it more explicit and easier to follow
- Chore(ci-coverage): fixes the help-test false-positive. [Frank
Harrison]

We were always writing the help"
- Chore(ci-coverage): adds test for
test_run_command_basic_call_verbose_with_cwd. [Frank Harrison]
- Chore(ci-coverage): ignores un-hit 'communicate' mock function. [Frank
Harrison]
- Chore(github-ci): upload reports on failures. [Frank Harrison]
- Chore(github-ci): revert back to using the makefile for the redundant
checks. [Frank Harrison]
- Chore(github-ci): installs yarn deps for ci job. [Frank Harrison]
- Chore(github-ci): makes the log output less verbose by using --no-
spinner. [Frank Harrison]
- Chore(github-ci): moves the redundancy checks first to own job. [Frank
Harrison]
- Chore(github-ci): runs two basic checks for redunancy during ci.
[Frank Harrison]

This should help catch errors where runem has been broken and returns a
false-positive when run against itself.
- Chore(github-ci): runs runem against itself. [Frank Harrison]

This could have drawbacks later so we will think about adding some
redundancy to the ci checks.
- Merge pull request 33 from lursight/fix/mutiline_stdout. [Frank
Harrison]

fix(stdout-parsing): ensures that trailing newlines are handled
- Fix(stdout-parsing): ensures that trailing newlines are handled.
[Frank Harrison]

There will be a slight performance cost to this, hopefully not too much.

0.0.27

-------------------
- Release: version 0.0.27 🚀 [Frank Harrison]
- Merge pull request 32 from lursight/feat/min-version_check. [Frank
Harrison]

Feat/min version check
- Feat(min-version): adds support to check for minimum required runem
version in config. [Frank Harrison]
- Feat(min-version): adds --version switch. [Frank Harrison]

and changes -v to be an alias for --version and not --verbose

0.0.26

-------------------
- Release: version 0.0.26 🚀 [Frank Harrison]
- Merge pull request 31 from
lursight/fix/exceptions_on_non_blocking_print. [Frank Harrison]

fix(blocked-print): adds a 'blocking_print' function
- Fix(blocked-print): adds a 'blocking_print' function. [Frank Harrison]

Sometimes in long-lasting jobs, that produce lots of output, we hit
BlockingIOError where we can't print to screen because the buffer is full or
already being written to (for example), i.e. the would need to be a
'blocking' call, which it is not.

0.0.25

-------------------
- Release: version 0.0.25 🚀 [Frank Harrison]
- Merge pull request 30 from lursight/feat/stream_stdout. [Frank
Harrison]

Feat/stream stdout
- Feat(stream-stdout): supports larger sub-process buffer sizes by using
Popen. [Frank Harrison]

This also allows us to stream the stdout to the console on verbose mode
- Chore(flake8): upgrades to latest flake8. [Frank Harrison]

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.