Skip to content

Commit

Permalink
Apply latests updates from old repo
Browse files Browse the repository at this point in the history
  • Loading branch information
saratomaz committed Nov 20, 2024
1 parent 01fb586 commit b2ef274
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion db_sync_tests/scripts/postgres-start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env -S nix develop --accept-flake-config .#postgres -i -k PGHOST -k PGPORT -k PGUSER -c bash
#! /usr/bin/env -S nix develop --accept-flake-config github:input-output-hk/cardano-node-tests#postgres -i -k PGHOST -k PGPORT -k PGUSER -c bash
# shellcheck shell=bash

set -euo pipefail
Expand Down
2 changes: 1 addition & 1 deletion db_sync_tests/tests/full_sync_from_clean_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def main():
NODE_DIR=clone_repo('cardano-node', node_version_from_gh_action)
os.chdir(NODE_DIR)
execute_command("nix build -v .#cardano-node -o cardano-node-bin")
execute_command("nix build -v --debug .#cardano-cli -o cardano-cli-bin")
execute_command("nix-build -v -A cardano-cli -o cardano-cli-bin")

print("--- Node setup")
copy_node_executables(build_method="nix")
Expand Down
2 changes: 1 addition & 1 deletion db_sync_tests/tests/iohk_snapshot_restoration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

sys.path.append(os.getcwd())

from utils.utils import seconds_to_time, get_no_of_cpu_cores, get_current_date_time, \
from db_sync_tests.utils.utils import seconds_to_time, get_no_of_cpu_cores, get_current_date_time, \
get_os_type, get_total_ram_in_GB, upload_artifact, clone_repo, wait, zip_file, \
print_file, stop_process, copy_node_executables, write_data_as_json_to_file, \
execute_command, get_node_config_files, are_errors_present_in_db_sync_logs, \
Expand Down
2 changes: 1 addition & 1 deletion db_sync_tests/tests/local_snapshot_restoration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

sys.path.append(os.getcwd())

from utils.utils import seconds_to_time, get_no_of_cpu_cores, \
from db_sync_tests.utils.utils import seconds_to_time, get_no_of_cpu_cores, \
get_current_date_time, get_os_type, get_total_ram_in_GB, \
upload_artifact, print_file, stop_process, export_env_var, is_string_present_in_file, \
zip_file, write_data_as_json_to_file, get_db_sync_version, start_node_in_cwd, \
Expand Down
4 changes: 2 additions & 2 deletions db_sync_tests/tests/snapshot_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

sys.path.append(os.getcwd())

from utils.utils import seconds_to_time, get_no_of_cpu_cores, \
from db_sync_tests.utils.utils import seconds_to_time, get_no_of_cpu_cores, \
get_current_date_time, get_os_type, get_total_ram_in_GB, \
upload_artifact, print_file, create_db_sync_snapshot_stage_2, \
write_data_as_json_to_file, set_buildkite_meta_data, \
Expand All @@ -17,7 +17,7 @@
get_file_size, create_db_sync_snapshot_stage_1, print_color_log, \
ROOT_TEST_PATH, ENVIRONMENT

from utils.aws_db_utils import get_identifier_last_run_from_table, add_single_row_into_db
from db_sync_tests.utils.aws_db_utils import get_identifier_last_run_from_table, add_single_row_into_db



Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# linting
mypy
pre-commit
pylint
pylint==2.15.5
types-PyYAML
types-requests

18 changes: 18 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
[flake8]
ignore = E128,E811,W503,E203,PT001,PT004,PT007,PT012,PT018,PT023,PL123
max_line_length = 100

[pydocstyle]
inherit = false
# google convention + D413
ignore = D10,D203,D212,D213,D214,D215,D404,D405,D406,D407,D408,D409,D410,D411,D413
match = .*\.py

[rstcheck]
ignore_directives =
automodule,
mdinclude,
ignore_messages=(Undefined substitution referenced: \":)
[metadata]
name = cardano-sync-tests
url = https://github.com/IntersectMBO/cardano-sync-tests
Expand All @@ -11,6 +27,7 @@ classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Intended Audience :: Developers
[options]
Expand All @@ -29,3 +46,4 @@ install_requires =
pymysql
requests
setuptools >= 60.5.0

0 comments on commit b2ef274

Please sign in to comment.