This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| import camelot | |
| import argparse | |
| from decimal import * | |
| if __name__ == "__main__": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get install bc | |
| psql -qtA -U cloud_admin postgres -c "select datname from pg_database where datname "'!'"= 'postgres' and datname "'!'"~ 'template.*';" > dbs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## usage: stand on commit and run, e.g. | |
| # git checkout rm-ws-logging-v16 && branch=rm-ws-logging backpatch_neon.sh | |
| set -e | |
| # set -o xtrace # print each line | |
| commit=$(git rev-parse HEAD) | |
| echo "applying ${commit}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import time | |
| import requests | |
| HEADERS = { | |
| 'Authorization': 'Bearer ' + os.environ['NEON_STAGING_KEY'], | |
| } | |
| for i in range(0, 10000): | |
| start = time.time() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================================================================================= FAILURES ================================================================================= | |
| ________________________________________________________________________ test_pgbench[neon-45-400] _________________________________________________________________________ | |
| self = <fixtures.pageserver.http.PageserverHttpClient object at 0x7f7b2bc5aad0>, res = <Response [500]> | |
| def verbose_error(self, res: requests.Response): | |
| try: | |
| > res.raise_for_status() | |
| test_runner/fixtures/pageserver/http.py:119: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import time | |
| import requests | |
| import sys | |
| HEADERS = { | |
| 'Authorization': 'Bearer ' + os.environ['NEON_API_KEY'], | |
| } | |
| params = {'limit': 100} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| logf = sys.argv[1] | |
| with open(logf) as file: | |
| lines = file.readlines() | |
| # print(lines) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ars@librem ~/neon/cloud $ make test-e2e RUNTEST_ARGS='-k test_proxy_get_role_secret' | |
| make -C tests_e2e test | |
| make[1]: Entering directory '/home/ars/neon/cloud/tests_e2e' | |
| poetry install | |
| Installing dependencies from lock file | |
| No dependencies to install or update | |
| poetry run pytest -vvs --durations=15 -k test_proxy_get_role_secret | |
| ==================================================================================== test session starts ===================================================================================== | |
| platform linux -- Python 3.10.8, pytest-7.1.1, pluggy-1.0.0 -- /home/ars/.cache/pypoetry/virtualenvs/tests-e2e-CrmeBj7j-py3.10/bin/python |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The key to replace, read from decrypt.key | |
| unsigned char *key_data; | |
| size_t key_len = -1; | |
| VOID Before(INT *len, unsigned char *data) | |
| { | |
| TraceFile << "BF_set_key found, it's key length is " << *len << std::endl; | |
| if ((size_t)(*len) < key_len) { | |
| TraceFile << "Error: BF_set_key key's length is less than ours! " << | |
| std::endl; |
NewerOlder