Skip to main content
GitResultsManager
=====================

Note: GitResultsManager does not profess to be remotely operable on
any operating system besides Linux and Mac. Evidence of success on
other OSs is appreciated.



Installing
---------------------

### One line install:

git clone https://github.com/yosinski/GitResultsManager.git && \
cd GitResultsManager && \
sudo python setup.py install && \
sudo cp gitresman gitresmantimediff grmtd git-recreate /usr/local/bin/

Replace /usr/local/bin with another location on your path, if desired.



Usage
---------------------

GitResultsManager may be used in two ways:

1. Using the `gitresman` wrapper script to run programs in any language, or
2. From within Python as a Python module.

(1) is more general, while (2) offers more control. The following examples are available in the `examples` directory.

### Example of using `gitresman` wrapper script to run a C program:

First, we'll compile the `demo-c` program (from the examples directory) and run it without `gitresman`:

g++ -o demo-c demo-c.cc # compile program first if necessary
./demo-c

Output:

Environment variable GIT_RESULTS_MANAGER_DIR is undefined. To demonstrate logging, run this instead as
gitresman junk ./demo-c
This line is logged
This line is logged (stderr)
This line is logged
This line is logged (stderr)
This line is logged
This line is logged (stderr)

Notice that it complains it cannot find the GIT_RESULTS_MANAGER_DIR
environment variable. This is how the program knows it is not being
run from within `gitresman`. Now, try using `gitresman` to run it:

gitresman run-name ./demo-c

Output:

WARNING: GitResultsManager running in GIT_DISABLED mode: no git information saved! (Is /Users/jason/temp/examples in a git repo?)
Logging directory: results/121030_183101_run-name
Command run: ./demo-c
Hostname: lapaz
Working directory: /Users/jason/temp/examples
The current GIT_RESULTS_MANAGER_DIR is: results/121030_183101_run-name
This line is logged
This line is logged
This line is logged
This line is logged (stderr)
This line is logged (stderr)
This line is logged (stderr)
Wall time: 0.024
Processor time: 0.012

Notice how `gitresman` adds a few lines of information to the beginning and ending of the output? Looking at each line in order:

WARNING: GitResultsManager running in GIT_DISABLED mode: no git information saved! (Is /Users/jason/temp/examples in a git repo?)

Warning because we aren't running from within a git repository, removing most of the usefulness of GitResultsManager.

Logging directory: results/121030_183101_run-name

The directory that was created for this run, in the format `<datestamp>_<timestamp>_<name of run>`

Command run: ./demo-c

Which command you actually ran.

Hostname: lapaz

The host this run was performed on (useful when running on clusters or
multiple machines with non-identical configurations)

Working directory: /Users/jason/temp/examples

The working directory. Next follows the actual output of the program, and then at the end...

Wall time: 0.024
Processor time: 0.012

`gitresman` notes how long the program took to execute in wall time and processor time.

### Example of using the `GitResultsManager` class within Python.

See `examples/demo-GRM-module.py`.



Development task list
----------------------

### To do

1. Add settings override in ~/.config/gitresultsmanager_config.py
1. Documentation

Want to help? Fork and submit a pull request!

Metadata

Release files for GitResultsManager 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GitResultsManager 0.1
File Size Uploaded
GitResultsManager-0.1.tar.gz 10.8 kB Details

Release files / GitResultsManager-0.1.tar.gz

Download URL GitResultsManager-0.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f8c54dd4e0c55b34c1a20cf9fe781e93e1f20061d7570843dad074d8f75e0d63
BLAKE2b-256 checksum
How to use checksums
f51a061c5038f631c3f91f7904ab9e9bf02f393955ea761ce703fe45377eafbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.1

1 release file

0.4.0

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page