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(travis): remove travis CI, replace with GH Actions #400

Merged
merged 34 commits into from
Sep 15, 2023
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5485cfe
fix(travis): force a reasonable default distribution
Avantol13 Sep 12, 2023
188a644
fix(ci): install postgres
Avantol13 Sep 12, 2023
5bf2b4a
fix(ci): install postgres
Avantol13 Sep 12, 2023
fda307b
feat(gh): try to port unit test to GH Actions
Avantol13 Sep 12, 2023
b3610a2
fix(gh): ensure python commands run in venv
Avantol13 Sep 12, 2023
6deb74e
fix(ci): testing branch
Avantol13 Sep 12, 2023
9834946
chore(whitespace): remove
Avantol13 Sep 13, 2023
b5f79f5
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
da9d968
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
ed82a48
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
0bdf236
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
6ea1f1d
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
84dcc2b
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
372d37c
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
fc0af00
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
809ed5c
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
504e0f1
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
a08b493
fix(tests): update setup of postgres db to support postgres 15 changes
Avantol13 Sep 13, 2023
88ea5d7
fix(tests): update setup of postgres db to support postgres 15 changes
Avantol13 Sep 13, 2023
a5a8402
fix(tests): update setup of postgres db to support postgres 15 changes
Avantol13 Sep 13, 2023
7ec65fa
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
184fe28
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
c86c402
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
9a91f0a
chore(ci): force GH Actions rerun
Avantol13 Sep 13, 2023
719684b
Revert "fix(tests): update setup of postgres db to support postgres 1…
Avantol13 Sep 13, 2023
37054df
fix(ci): ensure exit code is error if any commands error
Avantol13 Sep 13, 2023
dd76ae5
fix(ci): ensure exit code is error if any commands error
Avantol13 Sep 13, 2023
2de6a09
chore(test): cleanup old "integration" tests
Avantol13 Sep 13, 2023
c41892b
chore(ci): add wool, update readme, update setup to defaults
Avantol13 Sep 14, 2023
ec81d18
chore(ci): remove travis
Avantol13 Sep 14, 2023
aedff22
Update ci.yaml
Avantol13 Sep 14, 2023
8010f36
chore(tests): simplify test run script and test failure
Avantol13 Sep 15, 2023
bb43511
Merge remote-tracking branch 'origin/fix/travis' into fix/travis
Avantol13 Sep 15, 2023
52c6b64
chore(tests): remove forced failure used for testing
Avantol13 Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(tests): update setup of postgres db to support postgres 15 changes
  • Loading branch information
Avantol13 committed Sep 13, 2023
commit a08b4936ef0cbb5f3fbcaaa91eeb54465373636f
15 changes: 14 additions & 1 deletion bin/setup_psqlgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ def setup_database( # nosec
conn.execute("commit")
except Exception as msg:
logging.warning("Unable to GRANT privs to user:" + str(msg))

# PostgreSQL 15 revokes the previously defaulted CREATE permission
# from all users
# except a database owner from the public (or default) schema.
# This is required for db setup for testing, so grant
# that permission to the user as well.
try:
perm_stmt = "GRANT CREATE ON SCHEMA public TO {user}".format(
user=user_no_host
)
conn.execute(perm_stmt)
conn.execute("commit")
except Exception as msg:
logging.warning("Unable to GRANT privs to user:" + str(msg))
conn.close()


Expand Down Expand Up @@ -195,7 +209,6 @@ def create_indexes(host, port, user, password, database, use_ssl=False):


if __name__ == "__main__":

parser = argparse.ArgumentParser()
parser.add_argument(
"--host", type=str, action="store", default="localhost", help="psql-server host"
Expand Down