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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: skip download count increment when vpm runs in CI by default #19861
tools: skip download count increment when vpm runs in CI by default #19861
Conversation
Why? There is no difference between running the tests on CI, or locally. In both cases, the incrementing should not be done => setting VPM_NO_INCREMENT unconditionally as it is on master is better. |
That's the reason for the PR. Currently, when running
|
Or do you mean to remove the possibility to explicitly enable it? |
I think it's a good fix. |
I often run In this PR, setting If I happen to run Imho a better solution will be, if you can check for |
i.e. I object to this: if os.getenv('CI') == '' {
os.setenv('VPM_NO_INCREMENT', '1', true)
} It should not be conditional. |
Admittedly, I don't really see the problem with the condition yet, as no increment will be set when CI is not set, which should be the case for local tests. |
Even when The condition was intended as test to have skipping tested when it's run in CI. Just in one of the test files seemed enough. But I also realise this test is shit, it doesn't test the behaviour in CI explicitly. Not-incrementing will be always set. The main use case in the PR is to extend not incrementing downloads from vpms own little tests to to all |
Were we both stupid or is it just me being an ape again? In either case, this is not something that should be on the internet 馃槅 |
Oh, the internet usually does not care, and can benefit from more laughter. In this case however, I really do think that |
That is also a bit bothering to me, since it is a double negation, and thus easier to get wrong. Imho |
34bbfc2
to
220ad96
Compare
This PR would make VPM skip incrementing the download count of modules the deafult behavior when they are installed in CI.
To explicitly enable incrementing,
VPM_NO_INCREMENT=0
can be set.馃 Generated by Copilot at 34bbfc2
This pull request enhances the vpm tool by adding a feature to prevent incrementing the download count of modules when vpm runs in a CI environment or when
VPM_NO_INCREMENT
is set. It also updates theinstall_test.v
file to test this feature.馃 Generated by Copilot at 34bbfc2
VPM_NO_INCREMENT
is set (link, link, link)install_test.v
to conditionally setVPM_NO_INCREMENT
based onCI
value (link)no_inc_env
variable tosettings.v
to storeVPM_NO_INCREMENT
value (link)no_inc_env
andCI
value to setno_dl_count_increment
field inSettings
struct (link)