-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Start migrating off of Travis to GitHub Actions or CircleCI #8793
Comments
Oof, our .travis.yml file is quite large: https://github.com/publiclab/plots2/blob/main/.travis.yml Working from this example: |
DB connection issues... over socket... ok, following this now: mirromutth/mysql-action#2
|
May need to follow these steps for DB connection: https://docs.knapsackpro.com/2019/github-actions-ci-config-for-ruby-on-rails-project-with-mysql-redis-elasticsearch-how-to-run-parallel-tests |
Looking at this first, then will try the above: https://github.community/t/github-actions-cant-connect-to-mysql/17885/2 |
Yes!! |
:-/// now i can't get back to that 'access denied' state, unfortunately. I'm now seeing:
|
OK, now ditching MariaDB we have gotten to running unit tests! Some cleanup to do, then very probably work on the system tests and chromedriver/screenshotting? https://github.com/publiclab/plots2/runs/1488071276?check_suite_focus=true We're also now seeing the MySQL 5.7 errors so we'd have to upgrade or adapt, or move back to MariaDB: #8251 #8177 #3120
|
ERROR["test_tag_show", #<Minitest::Reporters::Suite:0x00005632abd53f20 @name="TagControllerTest">, 79.24153970600003] |
FAIL["test_that_pinned_notes_with_"pinned:foo"tags_appear_at_the_top_of[nodes:foo]inline_tables", #<Minitest::Reporters::Suite:0x000055e98b024160 @name="NodeSharedTest">, 3.0618341420000093] ======================================| |
that's an odd one to fail... |
Later maybe we can skip Google Cloud Storage for screenshots and instead use artifacts: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/downloading-workflow-artifacts |
OK, doing well here... now need Redis?
|
Looks like we have an intermittent unit test failure here:
|
Redis is installed now, testing the connection... |
Huh, after a couple restarts to get past the intermittent unit test failure, I see a functional test that is also related to tags, but otherwise not sure it's related?
|
That's an ordering issue. I'll sort both arrays to fix. |
We need to address the unit test failure above, it's intermittent but pretty common- last line of this test: plots2/test/unit/node_shared_test.rb Lines 14 to 25 in 4597d75
But, when we pass it, we now get to system tests!!!! Many of those fail with:
That's an odd one actually, the Line 65 in c069cfb
Could they relate to port # of capybara/puma?:
|
Wow actually just 4 CSS errors like above, which could be... timing? Not sure... then here are the remainder of the system tests, which seem odd; a couple "wrong # of arguments" and then the rest to do with ActionCable setup: UPDATE: oh, these are actually all integration tests! Hm!
|
OK, tried to add redis port to |
Going to try a stricter usage of chromedriver as in:
per https://github.com/marketplace/actions/setup-chromedriver?version=v1.0.1 |
OK, moving into the PR for the remaining issues, to start a little cleaner. Thanks! |
In-depth discussion here: https://www.jeffgeerling.com/blog/2020/travis-cis-new-pricing-plan-threw-wrench-my-open-source-works
I'm going to try opening a PR using an alternative... i think the parallel jobs may be tough!
https://circleci.com/docs/2.0/migrating-from-travis/#section=getting-started -
Organizations on our free plan get 400,000 credits per month for open source builds.
https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/migrating-from-travis-ci-to-github-actions
The text was updated successfully, but these errors were encountered: