Merge pull request #2852 from IntersectMBO/simplify_rewards
fix: fix IndexError when getting address
fix: fix IndexError when getting address
Fix the error and simlify rewards records creation. - Replaced manual list extension with itertools.chain for querying rewards - Combined reward and reward_rest queries into a single chain - Updated return statement to use address directly
Add possibility to specify cardano-cli revision
- Added `cli_rev` input to `regression-dbsync.yaml`, `regression.yaml`, and `regression_reusable.yaml` workflows. - Removed `tx_era` input from the workflows. - Updated environment variable setup to include `CLI_REV`.
Updated the default cluster era from conway 9 to conway 10 in the regression-dbsync.yaml and regression.yaml GitHub workflows.
feat: enable performance checking with ruff
- Added `PERF` to ruff linting rules in `pyproject.toml` - Refactored code to comply with new performance rules - Updated exception handling to include `# noqa: PERF203` - Optimized list comprehensions and `extend` usage
- Added `PERF` to ruff linting rules in `pyproject.toml` - Refactored code to comply with new performance rules - Updated exception handling to include `# noqa: PERF203` - Optimized list comprehensions and `extend` usage
refactor: use max function for comparisons
Refactor code to use the max function for comparisons instead of conditional expressions. This change improves readability and maintainability of the code. Added "FURB" to ruff lint select in pyproject.toml that checks for such code.
fix(pytype): resolve type errors and update Python version
- Update Makefile to use pytype with -k and -j auto options - Convert committee value to dict in conway_common.py and governance_setup.py - Add assertion for drep_data in test_drep.py - Update Python version to 3.11 in pyproject.toml for pytype and mypy
chore(linting): remove pylint ignores
We no longer check the code with pylint.
refactor(logging): move framework logging to separate module
- Moved framework logging functions from `logfiles.py` to new `framework_log.py` module. - Updated imports and references to use the new `framework_log` module. - Adjusted `temptools.py` to use `IS_XDIST` directly from `os.environ`.
feat: add netstat connection listing and refactor tools
- Added `get_netstat_conn` to fetch netstat connections - Refactored `get_netstat_out` to `get_netstat_listen` - Updated `kill_old_cluster` to use new netstat functions
feat: add logging to netstat tools for process killing
- Introduced a logging function to capture messages during the killing of leftover processes in `netstat_tools.py`. - Updated `kill_old_cluster` to accept a logging function and log messages to `scheduling.log`. - Modified `cluster_getter.py` to pass a logging function to `kill_old_cluster`.
fix(netstat_tools): remove CLOSE from netstat command
The netstat command was modified to exclude the 'CLOSE' state from the output. This change ensures that only 'LISTEN' and 'TIME_WAIT' states are included, and so no client connection can be matched.
fix: avoid matching a port number that is prefix of other port number
- Replace tab characters with spaces in netstat output to ensure consistent line splitting. - Add whitespace to the end of each port number to avoid matching a port number that is a prefix of another port number.
fix(treasury_withdrawals): use `build-raw` in bootstrap