Skip to content
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

Fix/separate migration bins #7857

Merged
merged 23 commits into from
Mar 31, 2021
Merged

Fix/separate migration bins #7857

merged 23 commits into from
Mar 31, 2021

Commits on Jan 29, 2021

  1. Migration downloads individual migration binaries

    The code in this PR finds the necessary mirgations, downloads the latest version of them from the distribution site, unpacks the executables, and runs the migrations in order.
    
    This code is also used to build the ipfs-update tool and the fs-repo-migrations tool.  Note: the fs-repo-migrations tool is only used to run stand-alone migrations now and is not used by either go-ipfs or ipfs-update.
    
    Additional utility is provided by this PR, that is not specific to migrations:
    - Find local ipfs directory
    - Get current repo version
    - Check for ipfs daemon availability
    - Get version information about any distribution on distribution site
    - Fetch and unpack any binary executable over ipfs or http
    gammazero committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    e37d08f View commit details
    Browse the repository at this point in the history
  2. Do not put migrations under their own root

    Since the migrations are not displayed on the dirtributions, there is not need to organize them under their own root to reduce visual clutter.  Having each migration follow the same path as all other distributions makes each easier to find in the absence of a link displayed on the distributions web page.  It also avoids complicating the distribution deployment scripts and allows each migration distribution to be treated the same as any other distribution.
    gammazero committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    5a3e567 View commit details
    Browse the repository at this point in the history
  3. Export IpfsDir() and CheckIpfsDir()

    - IpfsDir gets the location of the ipfs directory, whether it exists or not
    - CheckIpfsDir get the location and checks whether it exists.
    gammazero committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    01df5bd View commit details
    Browse the repository at this point in the history
  4. When version file is missing, do not assume this indicates version 0 …

    …since that breaks tests that get the version to see if ipfs is initialized
    gammazero committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    048db75 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    afcda7c View commit details
    Browse the repository at this point in the history
  6. Fix error reading zip when archive not found

    - Udate path to IPFS dist
    - Improve test coverage
    gammazero committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    e205b66 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0942e3b View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Configuration menu
    Copy the full SHA
    9d1fdcc View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2021

  1. minor code improvememts

    gammazero committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    515381d View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2021

  1. Configuration menu
    Copy the full SHA
    e22413a View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. Review changes

    gammazero committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    fcbe47b View commit details
    Browse the repository at this point in the history
  2. fix lint warnings

    gammazero committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    852dfab View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Review changes

    gammazero committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    077266d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1430a01 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. Rename migrations from ipfs-x-to-y to fs-repo-x-to-y (#8002)

    * rename migrations from ipfs-x-to-y to fs-repo-x-to-y
    * update current ipfs dist to one with migrations v1.0.0
    gammazero authored Mar 25, 2021
    Configuration menu
    Copy the full SHA
    1530cd2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    09a481e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    891c81e View commit details
    Browse the repository at this point in the history
  4. test: repo migrations fetch - skip part of a test on windows since it…

    … does not support read-only directories
    aschmahmann committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    36de939 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5ee8710 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2021

  1. Configuration menu
    Copy the full SHA
    f00b49b View commit details
    Browse the repository at this point in the history
  2. Fix typo in log message

    gammazero committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    fe97eee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2fc1594 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Configuration menu
    Copy the full SHA
    b75d823 View commit details
    Browse the repository at this point in the history