-
Notifications
You must be signed in to change notification settings - Fork 29
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
Revert changes to trickops test yml file from Sept 2023 to fix trickops unit tests #1681
Conversation
* trick_sims.yml was "accidentally changed" to remove unstable sims in Sept 2023, breaking the TrickOps unit tests. This reverts that change. * Adjust new hashlib md5 comparison approach to work on systems where 'usedforsecurity' isn't supported
a4e3483
to
93a10da
Compare
93a10da
to
0ad2662
Compare
OK so the core tests are fixed, but I'm still getting that "artifact upload" error which I don't understand: Here's how the artifacts are defined for the job: - uses: actions/upload-artifact@master
if: ${{ always() }}
with:
name: doctests
path: |
share/trick/trickops/tests/*_doctest_log.txt
/tmp/log.* I found this thread which seems to imply that all artifacts are collected into a single archive, even across jobs...? Maybe that's only true because of the "build matrix" y'all have configured...? If that's the case then it would make sense what's happening, whichever TrickOps job finishes first (Rocky 8 vs. Ubuntu) "wins" and the last job gets the error. Both jobs create log files of the same name in completely different workspaces. @hchen99 @sharmeye what should we do here? Some folks in that thread have suggested rolling back to |
@ddj116 may want to try to change |
Per suggestion on workaround as described here: actions/upload-artifact#478
OK reverted upload-artifacts mechanism to v3.0 and getting all green checks. I know @hchen99 mentioned that TrickOps unit tests were removed as part of #1400, but I don't quite understand that decision since the unit tests only take 4 minutes to complete and the longest other job is 14 minutes. This PR restores it to being tested in every PR which I would prefer, I'm happy to discuss the details with y'all if you have questions before we merge. |
Looks to me that TrickOps unit tests were changed from pull_request triggered to scheduled (unit tests were not removed :) to cut down time that Trick devs are spending on waiting for tests. Maybe TrickOps unit tests probably seldom fail although it's doesn't take that long but could be sufficient just run once a while and also the workflow can be manually triggered at anytime...and others on pull_request tests are much needed ... just trying to reason where the decision came from and personally find it was reasonable :) |
Yes - The unit test suite is built around the content in When the TrickOps unit tests run, they parse these To be clear, @jmpenn's removal of sims in
f12026 actually disabled the sims in Trick's core |
@ddj116 Oh, that's good to know. Thanks for the info. |
Here's a snippet we can talk to from
This section asserts the criteria of the tests - it's expecting 56 "sim build" jobs to come out of parsing |
Oh, ok, |
trick_sims.yml was "accidentally changed" to remove unstable sims in Sept 2023, breaking the TrickOps unit tests. This reverts that change.