Skip to content

Add a ci test for cabal-install self-upgrade policy #4259

Open

Description

@23Skidoo

In 6c2eba7 we clarified our cabal-install support policy with respect to self-upgrade: upgrading to the latest version with cabal install cabal-install must work with all cabal-install versions released in the last three years. As discussed in #4250, we should also have a CI check that this guarantee actually holds. Testing that cabal install Cabal/ cabal-install/ succeeds with cabal-install 1.18 should be enough.

Activity

  1. added this to the 2.0 milestone on Jan 23, 2017
  2. self-assigned this
    on Jan 23, 2017
  3. modified the milestones: 2.0, 2.0.1 on Feb 17, 2017
  4. modified the milestones: 2.0.1, 2.0.2 on Sep 19, 2017
  5. modified the milestones: 2.0.2, 2.4 on Aug 29, 2018
  6. modified the milestones: 2.4, 2.4.1 on Sep 17, 2018
  7. removed this from the 2.4.1.0 milestone on Apr 26, 2019
  8. 4 remaining items

  9. jneira commented on Feb 22, 2022

    @jneira
    Member

    I think the actual dogfood test builds master version of cabal-install with itself. The rest of tests builds master with one choosen cabal-install released version. This asks to build master version with the three lastest released versions (so two more than now)

  10. andreabedini commented on Feb 22, 2022

    @andreabedini
    Collaborator

    Right, I understand now. I am aware this is what the website suggests but the question is:

    Is this something we want to support and test?

    Users could simply install a new version of cabal with ghcup or perhaps download a static binary (from here) (which AFAIK is work in progress). This would be less work on the maintainer team.

  11. jneira commented on Feb 22, 2022

    @jneira
    Member

    I think cabal install cabal-install is not the main method of upgrade cabal-install nowadays. However i think it is still widely used.
    Otoh cabal users usually jumps to lastest versions quite faster (to get bug fixes! 🙂) and not having this did not suppose terrible issues afaik.
    So we could rely in users and fix issues with older versions of cabal-install on demand.
    Remember: if you dont test in ci, users will be the ci 😉 I think we have to take in account that when taking decissions.

    So imo we can close/mark as low priority

  12. andreabedini commented on Feb 22, 2022

    @andreabedini
    Collaborator

    I think cabal install cabal-install is not the main method of upgrade cabal-install nowadays.

    Perhaps we can change the documentation then :) happy to close this (in this form). We can have another ticket/discussion about what install methods we want to support.

    EDIT: the website mentions GHCup, Haskell Platform and self-upgrade.

  13. Mikolaj commented on Feb 22, 2022

    @Mikolaj
    Member

    I think this would be a valuable test and doubly so because it reflects a recommended activity, but the CI may be growing too much already. Perhaps let's keep it for when we setup a separate low frequency CI that only runs overnight or only runs when PRs merge or something?

  14. changed the title [-]Add a Travis test for cabal-install self-upgrade policy[/-] [+]Add a ci test for cabal-install self-upgrade policy[/+] on Mar 11, 2022
  15. ulysses4ever commented on Sep 2, 2022

    @ulysses4ever
    Collaborator

    Let me make sure I understand it: we want a job with cabal install cabal-install that runs semi-regularly (nightly or on merge). Which host cabal do we want here? Something old, as suggested above? 1.18? GHCup has 2.4 at the oldest. HVR ppa goes to 1.16 but on old Ubuntu's, and for today's ones it's also 2.4 Any suggested method to get e.g. 1.18 on ubuntu-latest?

    And installing from the local package, not from Hackage, right? (Otherwise it'd make no sense to run it in CI any time other than release.)

    Tangentially, is there a nice table with a list of cabal releases and the respective dates? So that it's easy to convert "3-year window" to the oldest supported version? The table is on the Downloads, page of course.

  16. Mikolaj commented on Sep 2, 2022

    @Mikolaj
    Member

    Let's stick with 2.4 until it doesn't work any more (and is beyond the window). Yes, from the repo using the commandline from README makes sense.

    OTOH, we could have a job that uses master to install the last version available on Hackage from Hackage. That tests both the "from Hackage" instruction from README and the downgrade posibility. Both can break as the source on master evolves (the latter is less important, but may point to more important problems).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions