Conversation
|
@miguelgfierro the picture above - do you mean multiple PRs are now triggering multiple nightly tests while the correct behavior is only one nightly test should be run for all the PRs of that day? |
|
When Pradnyesh did the solution, he found that there is an issue with GitHub that it only allows to schedule cron jobs in main https://github.com/microsoft/recommenders/blob/main/.github/workflows/azureml-cpu-nightly.yml#L18 The code we had before executed nightly when there was a PR to main (in staging branch). So we are repeating the same tests with the same code twice every time we merge to staging and there is a PR to main. This PR removes the nightly in the PR to main, because it is actually repeating the same test twice. If you notice, in the screenshot, the 3 nightlys are executed at the same time. Also in the figure you'll notice that when we do a PR to main we are executing the unit tests. This makes sense and are not repeated. Let me know if you need additional details |
Description
I noticed that when there is a merge to staging and a PR to main, we are doing twice the nightly tests. They are the exact same tests so there is no need to have it twice.
By removing the trigger when there is a PR to main, we are still checking that the nightly have passed, because all new code that is merged to staging passes the nightly.
In addition, every 5 days we are scheduling the nightly in main
Related Issues
References
Checklist:
staging branchand not tomain branch.