Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-6246

travis-ci.org move to travis-ci.com (due date: 2020-12-31)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: Integration
    • Labels:
      None

      Description

      Link:

      https://mailchi.mp/3d439eeb1098/travis-ciorg-is-moving-to-travis-cicom

      Scope:

      All current uses of travis-ci.org

      Summary:

      Basically "... we are announcing that travis-ci.org will be officially closed down completely on December 31st, 2020..."

      So we have to ensure that all our travis integrations continue working with travis-ci.com.

      Plan:

      A- we read and understand the needed changes (link to support doc).

      B- we are aware of all our open source repositories currently using travis-ci.org services. To verify we are able to add any modification and verify everything continues working. Making a list here, in the description, with links.

      C- we are also aware of other integrations using current travis-ci.org APIS and look for their counterparts in the new travis-ci.com. Making a list here, with links.

      D- we proceed with the switch to travis-ci.com and verify that all the uses registered continue working. Surely that day there will be some glitches, hopefully easy to fix.

      E- we document and share any change needed to the community (moodle clones, plugins, other repos in general....).

      Basic instructions to migrate from travis-ci.org to travis-ci.com all personal repos/clones @ github.

      (based on https://docs.travis-ci.com/user/migrate/legacy-services-to-github-apps-migration-guide/)

      Note: please, be warned that, right now, the tracker and cibot integrations detailed below aren't yet ready to work against travis-ci.com, so you will get unknown badges and status till those integrations are prepared to work against the new site.

      1. Log-in to https://travis-ci.org/ with your github credentials.
      2. Go to https://travis-ci.org/account/repositories
      3. Click the "Sign up for the beta" button.
      4. Log-in to https://travis-ci.com/ with your github credentials.
      5. Go to https://travis-ci.com/account/repositories
      6. In the "Repositories" tab you will see "Github Apps Integration". Press on "Activate".
      7. That will redirect you to Github page, it's asking if it's ok to give to the "Travis CI" App, read access to all your repos. If you're ok, press "Save". Note that it's also possible to pick individual repos instead of all, up to you ("all" is recommended by travis).
      8. Go to https://travis-ci.com/account/migrate, you should see there the list of repos that have been authorized in the previous step (all by default or just some if you decided to pick individual repos).
      9. Select them and press "Migrate selected repositories to travis-ci.com"
      10. A process (normally quick) will start, ending with each repo selected having a green tick. That's all. Migration completed. From there, you can send a commit or trigger a build and it will happen @ travis-ci.com
      11. Trick: to verify if you are missing any repo to be migrated... you can go to https://travis-ci.org/account/repositories. There you will see which repos have been already migrated (They show a "travis.com" link) and which are not yet.
      12. Once you have your builds already running @ https://travis-ci.com, surely it's a good moment to change the links to travis badges in your projects (READMEs and friends).
      13. If your repositories are accepting pull requests, and you've protected branches, configured to require checks to pass before merging, you will need to edit your protected branches configuration, moving away from the old, now deprecated "continuous-integration/travis-ci" and select the one(s) you're interested on, usually "Travis CI - Pull Request".
      14. Finally, once you've all your repos migrated and don't have anything remaining @ travis-ci.org, surely you can remove the old "Travis CI for Open Source" @ https://github.com/settings/applications (Authorized OAuth Apps). You won't need it anymore.

      Basic instructions to migrate from travis-ci.org to travis-ci.com all personal repos/clones @ SYSTEM-X.

      You are welcome to detail any process here. This poor developer only knows about github.


      Here there are the lists, please, everybody, add items with links (and explanations if needed) to them. Please, let's fill it so nothing escapes the move and verifications.

      Repositories using travis-ci.org services.

      Everyone, their own clones to public repos.
      1. moodle.git clones @ github.
      2. other clones to repos listed below.
      3. your own plugin repos.
      4. ...
      Moodle Development @ github.
      1. moodle.git mirror (not used with travis)
      Moodle HQ @ github.
      1. moodleapp (already was migrated).
      2. moodlemobile-phonegapbuild. Travis integration disabled. Deprecated repo. Archived.
      3. moodle-db-mssql. (link to travis-ci.com build), (changes PR), protected branches checks.
      4. moodle-db-oracle. (link to travis-ci.com build), (changes PR), protected branches checks.
      5. moodle-docker. (link to travis-ci.com build), (changes PR), protected branches checks.
      6. moodle-enrol_groupsync. (link to travis-ci.com build).
      7. moodle-enrol_oneroster (already was migrated).
      8. moodle-exttests. (link to travis-ci.com build), (changes PR), protected branches checks.
      9. moodle-local_amos. (link to travis-ci.com build).
      10. moodle-local_ci. (link to travis-ci.com build), (changes PR), protected branches checks.
      11. moodle-local_chatlogs. (link to travis-ci.com build), (changes PR), protected branches checks.
      12. moodle-local_codechecker. (link to travis-ci.com build), (changes PR), protected branches checks.
      13. moodle-local_moodlecheck. (link to travis-ci.com build), (changes PR), protected branches checks.
      14. moodle-php-apache. (link to travis-ci.com build), (changes PR), protected branches checks.
      15. moodle-plugin-ci. (link to travis-ci.com build), (changes PR), protected branches checks.
      16. moodle-tool_dataprivacy. Travis integration disabled. Deprecated repo. Archived.
      17. moodle-tool_inspire. Travis integration disabled. Deprecated repo. Archived.
      18. moodle-tool_policy. Travis integration disabled. Deprecated repo. Archived.
      Other public repos elsewhere using travis-ci.org.
      1. ...

      Integrations using travis-ci.org APIs.

      1. moodle_local-ci (CiBoT). Checking travis status for a branch. See if programmatically can try both, else day to switch. Link to PR.
      2. tracker.moodle.org (Displaying travis badges). Done, now both travis-ci.org and travis-ci.com are checked and corresponding badges shown.
        1. Users with travis-ci.com enabled: badges point to .com. all ok. (MDL-67673)
        2. Users with travis-ci.com disabled: Error is shown about missing that integration.
        3. Users with travis-ci.org enabled: badges point to .org. Warning is shown about needing to migrate. (MDL-69266)
        4. Users with travis-ci.org disabled: Error is shown about missing that integration.
      3. travis CLI uses: Set default with travis endpoint --com --set-default or add --com to every individual use.
      4. Badges pointing to, now inactive, travis-ci.org builds, usually in README files. (PRs have been created for the majority).
      5. ...

      Others.

      1. Warn community about the move, encouraging them to migrate. Tracker and CiBoT (see above) will start soon to look to travis-ci.com. (already commented in chats and forums, plus both the tracker and cibot will start warning about the need to migrate).
      2. ...

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Eloy Lafuente (stronk7)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: