8000 Add environment variables to modify the "Strictness" of the Tracker · Issue #86 · tira-io/tirex-tracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add environment variables to modify the "Strictness" of the Tracker #86

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

Open
mam10eks opened this issue May 1, 2025 · 3 comments
Open
Assignees
Labels
enhancement New feature or request lang:c/c++ Related to the C or C++ API or Code
Milestone

Comments

@mam10eks
Copy link
Member
mam10eks commented May 1, 2025

I would like that the tracker directly fails if some measurements can not be extracted, e.g., because the process has not the required permissions to access the corresponding system APIs.

Right now, the tracker does not fail if it can not record something, I would like to have a environment variable to control this behaviour.

E.g.,

TIREX_TRACKER_STRICTNESS="ALL"

that also is persisted into the metadata and would cause that the process directly terminates if it can not access something. Because this way, one could ensure that everything is properly recorded, and one could require that this flag is explicitly incorporated into ir-metadata to accept an run upload (or, to add a description why it was not possible to add this flag).

I think this would be very helpful and would not require to modify code.

@mam10eks
Copy link
Member Author
mam10eks commented May 1, 2025

One could do the same for git oriented fields. I.e., directly fail if the repository is not clean.

And an upload is only accepted if the environment variable was present at the time of the experiments or if an experimenter describes why it was not present (e.g., "I had no time to get it to run on my system", "I did not have the system permissions", "I forgot to add the flag", "I only saw this after I did the experiments", etc.)

I think this would be very cool, as it would be a good way to balance in the discussion that we had on how strict the tool should be (cc. @hscells).

@mam10eks mam10eks changed the title Add environment variables to modify the behaviour of the tracker Add environment variables to modify the "Strictness" of the Tracker May 1, 2025
@mam10eks
Copy link
Member Author
mam10eks commented May 1, 2025

From the chat (Tim):

I called this configuration pedantic internally so far (though I did not implement that yet so the Issue is very much relevant), as I usually see that term with command line tools to mean "error out for stuff that otherwise is a warning"

@mam10eks
Copy link
Member Author
mam10eks commented May 1, 2025

Oh, and one could even add this environment variable to Docker images, so that it would work out of the box in dev-container-oriented setups. This would be really awesome.

@TheMrSheldon TheMrSheldon self-assigned this May 21, 2025
@TheMrSheldon TheMrSheldon added enhancement New feature or request lang:c/c++ Related to the C or C++ API or Code labels May 21, 2025
@TheMrSheldon TheMrSheldon added this to the v1.0 milestone May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lang:c/c++ Related to the C or C++ API or Code
Projects
None yet
Development

No branches or pull requests

2 participants
0