-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👍🏼 Update IF to report runtime information to outputs #591
Comments
@jmcook1186 the acceptance criteria for this for me is:
Once the ticket is updated to the new format and the acceptance criteria added I'll 👍🏽 |
@jawache ok updated and awaiting approval |
added example manifest and output file to the ticket |
Revising one field, making the OS more clear. a solution is reserved to be tried out |
@jmcook1186 thanks for adding example manifest files but I think dependencies need to be a map, I believe the way you wrote it is as a long single multiline string. So each entry like @grnsft/[email protected] extraneous -> ./../if-plugins Should be either as a list
Or I think a map is more useful like so: "@grnsft/if-plugins": "v0.3.2 extraneous -> ./../if-plugins" So the key being the path we would have put in to load the plugin and the value being the version and optionally the part from where it was installed. |
ah, I see what you mean - yes it was intended to be a list, not a multiline string. I believe @narekhovhannisyan implemented it as a list in his PR #665. @narekhovhannisyan can you confirm how a package installed from github looks in your implementation - does it satisfy the requirements described here? |
@jmcook1186 GitHub links were ignored, pushed update for it |
@jmcook1186 please confirm what should happen with the timezones in the output |
Note that the feature is implemented in a way that if required information is not present, we use the defaults that Node.js provides:
|
IIUC the timezone is always converted to UTC before being reported in the manifest. As long as the documentation makes this clear I don't think it matters about the explicit inclusion of the timezone in the manifest. However, for clarity, let';s add |
Waiting to confirm if the documentation is also addressed |
@jmcook1186 to identify where docs are required |
The relevant documentation should be added in a new section between |
Sub of: #629 -> #650
Why
As a user I want to capture everything needed to audit and verify the results from my IF run. Currently, the IF outputs do not include information about the machine the code is run on, versions, environment details etc.
Context
Providing granular runtime details in the output file will help to audit and verify IF outputs.
SoW
Prerequisites
None
Acceptance Criteria
GIVEN the user is in a folder
WHEN they compute the manifest file
THEN the output manifest file has these nodes
execution
command
: The exact command line used to runenvironment
: Information about the runtime environmentos
: Name of OSos-version
: Version of OSnode version
: Version of Nodedate-time
: Datetime of the run including timezone.dependancies
: The dependancies gathered from runningnpm list
<package-name>
:<package-version>
@grnsft/if-plugins
:@v0.3.2 (git+ssh://[email protected]/Green-Software-Foundation/if-plugins.git#8056a9593e3d41786d32dddb3e080bba75a8aa54)
@grnsft/if-unofficial-plugins
:0.3.1
Documentation is updated to describe new info in outputs.
Example Manifest
There are no changes required to the manifest format, but when it is executed additional information should be added to the output file. We can use the following manifest as an example (this is basic.yml from IF repo):
The output file should look as follows:
The text was updated successfully, but these errors were encountered: