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

build: pin alembic to avoid a dataset bug #400

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Commits on Jun 22, 2023

  1. build: pin alembic to avoid a dataset bug

    The bug report: pudo/dataset#419
    
    Without the pin, this error happens when running this command:
    
    ```
    $ conventional_commits collect --ignore='*-private' edx/* openedx/*
    Traceback (most recent call last):
      File "/usr/local/virtualenvs/repo-tools/bin/conventional_commits", line 33, in <module>
        sys.exit(load_entry_point('edx-repo-tools', 'console_scripts', 'conventional_commits')())
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
        return self.main(*args, **kwargs)
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/click/core.py", line 1055, in main
        rv = self.invoke(ctx)
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/click/core.py", line 760, in invoke
        return __callback(*args, **kwargs)
      File "/System/Volumes/Data/root/src/edx/src/repo-tools/edx_repo_tools/conventional_commits/commitstats.py", line 134, in collect
        load_commits(db, repo_name)
      File "/System/Volumes/Data/root/src/edx/src/repo-tools/edx_repo_tools/conventional_commits/commitstats.py", line 71, in load_commits
        commit_table.insert(row)
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/dataset/table.py", line 118, in insert
        row = self._sync_columns(row, ensure, types=types)
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/dataset/table.py", line 381, in _sync_columns
        self._sync_table(sync_columns.values())
      File "/usr/local/virtualenvs/repo-tools/lib/python3.8/site-packages/dataset/table.py", line 356, in _sync_table
        self.db.op.add_column(self.name, column, self.db.schema)
    TypeError: add_column() takes 3 positional arguments but 4 were given
    ```
    Ned Batchelder committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    27bd920 View commit details
    Browse the repository at this point in the history