Skip to content

Improve and clean-up edx-platform constraints file #35055

Closed

Description

@robrap

Some suggestions based on openedx/openedx-proposals#332, which hasn't been completed yet.

Here is what we might do for each constraint:

  • Add the date the constraint was added to see at-a-glance how old certain pins are.
  • Add headers like "Date:", "Description:", and "Ticket:" to make the format more official, and easier to duplicate.
  • Add a link to a github issue for unpinning each constraint.
    • Create tickets as-needed.
    • Add details to ticket to allow constraint description to be brief.
    • Exceptions, like edx-enterprise, might use something like Ticket: N/A (Updated as needed.)
  • Alphabetically sort constraints. We used to do this. It makes them simpler to find, and makes it less likely we'll have duplicate constraints. Related constraints can use the same ticket or the description can refer to another constraint.
  • Ensure a new line before/after each separate constraint. This is mostly complete.

Here is an example of an updated constraint.

# Date: 2023-05-11
# Description: urllib3>=2.0.0 conflicts with elastic search && snowflake-connector-python packages
# which require urllib3<2 for now.
# Ticket: https://github.com/openedx/edx-platform/issues/32222
urllib3<2.0.0

Also, update the help text at the top to make these guidelines more clear. See https://github.com/openedx/edx-platform/blob/master/requirements/constraints.txt#L6-L9

Finally, based on how this goes, we could either ticket or just update https://github.com/openedx/edx-lint/blob/master/edx_lint/files/common_constraints.txt.

Activity

  1. robrap commented on Jul 1, 2024

    @robrap
    ContributorAuthor

    @jristau1984: Could arbi-bom take this on at some point? I think it would help them as much as everyone else. Thanks.

  2. jristau1984 commented on Jul 29, 2024

    @jristau1984
    Contributor

    I have added this to the Arbi-BOM project, and am removing it from Arch-BOM.

  3. moved this from Todo to Author Team Review in Arbi-BOMon Aug 12, 2024
  4. jristau1984 commented on Aug 12, 2024

    @jristau1984
    Contributor

    @huniafatima-arbi please make sure that links to the created issues are added as comments in the constraints file, for future reference. Thanks for picking this up!

  5. moved this from Author Team Review to Approved in Arbi-BOMon Oct 9, 2024
  6. moved this from Approved to Done in Arbi-BOMon Oct 9, 2024
  7. closed this as completedby moving to Done in Arbi-BOMon Oct 9, 2024
  8. robrap commented on Oct 9, 2024

    @robrap
    ContributorAuthor

    [inform] This is great. I did add a couple of comments: #35601 (review)

  9. moved this from Done to Done - Long Term Storage in Arbi-BOMon Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions