Repository navigation
ci: Add nightly integration and distributed tests - #210
siddharth07-code wants to merge 8 commits into
Conversation
👷 Deploy request for trainite pending review.Visit the deploys page to approve it
|
TahaZahid05
left a comment
There was a problem hiding this comment.
Left comments. Also, can you check if the existing tests already test distributed and also integration i.e generating all possible combination of experiments and verify that they are training correctly.
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true |
There was a problem hiding this comment.
Hi @TahaZahid05 , I added it to avoid overlapping runs and save CI resources, but since the workflow only runs once a day, I don’t think it’s really necessary. I’ll remove it from the .yml .
| on: | ||
| schedule: | ||
| # Run every night at 02:00 UTC | ||
| - cron: "0 2 * * *" |
There was a problem hiding this comment.
why not just do 0:00 utc?
There was a problem hiding this comment.
No particular reason for choosing 02:00 UTC. I’ll surely change it to 00:00 UTC.
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.11"] |
There was a problem hiding this comment.
should we test 3.12 and 3.13 as well?
There was a problem hiding this comment.
Yes, that makes sense. I’ll check compatibility with both versions and add them to the matrix if everything works!
|
Sure @TahaZahid05 ,I’ll go through the existing tests and check which experiment combinations are already covered and whether they’re actually testing successful training. I’ll add coverage for anything important that’s missing. |
|
Hi @TahaZahid05, I have pushed the updates addressing your feedback. I removed concurrency, changed the schedule to 0:00 UTC, added Python 3.12/3.13 coverage, and expanded the integration tests to eight model/dataset combinations. I also added two distributed training regressions. All local tests and checks are passing. The distributed tests still need native Linux validation, along with the Windows smoke test. Thanks again for your help! |
| "--standalone", | ||
| "--rdzv-endpoint=localhost:0", |
There was a problem hiding this comment.
Hi @vfdev-5 ,I added it to avoid potential port conflicts during distributed tests by letting the OS pick an available port. I thought this would make the tests a bit more reliable in CI, especially when multiple jobs are running.
I will double-check whether it’s actually needed alongside —standalone and update the PR accordingly.
There was a problem hiding this comment.
Thanks for pointing this out, @vfdev-5 ! I confirmed that --standalone already configures the rendezvous endpoint automatically, so the explicit argument was redundant. I've removed it from both test invocations and updated the PR accordingly.
TahaZahid05
left a comment
There was a problem hiding this comment.
The PR currently isn't in good shape. Please improve it by not making unnecessary files. Additionally, distributed only needs to be tested in the sense that our code works fine with distributed config. We dont need to test Accelerate itself since that is not the concern of Trainite.
There was a problem hiding this comment.
Why add so many new files? It makes the codebase a mess. Why is a new file required?
There was a problem hiding this comment.
We dont need to test if Accelerate works or not since that is not our concern. We only need to validate that our code is running with a distributed configuration and validate that it is training properly i.e monitoring loss.
|
Thanks for the feedback, @TahaZahid05! I see what you mean. I went a bit overboard with the additional tests, and I agree we should focus on verifying Trainite’s behavior rather than testing Accelerate itself. I’ll clean up the unnecessary files, simplify the tests, and make sure the distributed tests actually verify training progress and loss values. I’ll go through all your comments carefully, rerun the checks, and push an updated version that addresses these concerns. |
|
Hi @TahaZahid05, I have pushed the updates based on your feedback. I removed the three redundant test files, consolidated the relevant coverage into existing tests, and simplified the distributed checks to focus on Trainite's training progress and loss values. Thanks for the suggestions! Would appreciate another look when you get a chance. |
Description
Moves expensive integration and distributed tests to a dedicated nightly workflow while keeping regular PR CI fast.
Changes
distributedpytest marker and exclude it from default test runsworkflow_dispatchTesting
258 passed, 5 deselected— default test suite1 passed— integration test41 passed, 1 deselected— decoder trainer testsCloses #207