Skip to content

Commit

Permalink
Merge branch 'develop' into rosen-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Sep 22, 2023
2 parents 222cb40 + 0150c98 commit 59800d2
Show file tree
Hide file tree
Showing 162 changed files with 20,430 additions and 4,532 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: python -m pip install pip-check-reqs

- name: Check extra core requirements
run: pip-extra-reqs -r werkzeug covalent covalent_dispatcher covalent_ui
run: pip-extra-reqs -r werkzeug covalent covalent_dispatcher covalent_ui --ignore-requirement=qiskit --ignore-requirement=qiskit-ibm-provider --ignore-requirement=amazon-braket-pennylane-plugin

- name: Check missing SDK requirements
run: >
Expand All @@ -54,6 +54,7 @@ jobs:
--ignore-file=covalent/executor/**
--ignore-file=covalent/triggers/**
--ignore-file=covalent/cloud_resource_manager/**
--ignore-file=covalent/quantum/qserver/**
covalent
- name: Check missing dispatcher requirements
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
"workflow_dispatch",
"pull_request"
]
},
{
Expand Down
55 changes: 53 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,64 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Added
## [0.229.0-rc.0] - 2023-09-22

### Authors

- Andrew S. Rosen <[email protected]>
- Alejandro Esquivel <[email protected]>
- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Co-authored-by: mpvgithub <[email protected]>
- Co-authored-by: Manjunath PV <[email protected]>
- Co-authored-by: Ara Ghukasyan <[email protected]>
- Co-authored-by: Sankalp Sanand <[email protected]>
- Co-authored-by: jackbaker1001 <[email protected]>
- Co-authored-by: Santosh kumar <[email protected]>
- Co-authored-by: Ara Ghukasyan <[email protected]>
- Co-authored-by: Will Cunningham <[email protected]>
- Co-authored-by: sriranjani venkatesan <[email protected]>
- Co-authored-by: ArunPsiog <[email protected]>
- Co-authored-by: Prasy12 <[email protected]>
- Co-authored-by: Prasanna Venkatesh <[email protected]>
- FilipBolt <[email protected]>

- Added a `py.typed` file to support type-checking

### Fixed

- Formatted executor block under Qelectron job details to handle any class-type values
- Fixed test-cases to handle latest pydantic version changes
- Rsync command fixed to recursively copy files when using SSH
- Removed accidentally added migrations build files
- Updated migration script to add a default value for `qelectron_data_exists` in the `electrons` table since it cannot be nullable

### Changed

- Raised the minimum version of Pydantic from 1.10.1 to 2.1.1 in `requirements.txt`
- Electron DAL to use Covalent server's data instead of QServer's data.
- Renamed QCluster's `selector_serialized` attribute so it gets propagated to the qserver.
- Removed `orm_mode = True` in `covalent_ui/api/v1/models/dispatch_model.py` as it is deprecated in Pydantic 2

### Added

- Added a `py.typed` file to support type-checking
- Corrected support from distributed Hamiltonian expval calculations
- Exposed qelectron db in sdk result object
- UI changes added for qelectrons and fix for related config file corruption
- UI fix regarding Qelectron not showing up
- Performance optimisation of UI for large Qelectrons

## Tests

- Changed the method for startup and shutdown events for pytest to work with fastapi version 0.93.0
- Fixed test cases to adapt changes to SQLAlchemy version 1.4.49
- Add tests for GUI frontend and backend.
- Skipped `tests/covalent_ui_backend_tests/end_points/summary_test.py::test_overview` until it gets fixed.

### Docs

- Fix autodoc for SSH, Slurm, AWS Braket, AWS Lambda, AWS EC2, AWS Batch, Google Batch
- Updated documentation links in README
- Added tutorial for redispatching workflows with Streamlit

### Operations

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include VERSION
include requirements.txt
include requirements-client.txt
include covalent/py.typed
recursive-include covalent/executor/executor_plugins/ *
recursive-include covalent/executor/ *
recursive-include covalent_dispatcher/_service/ *
recursive-include covalent_migrations/ *
recursive-exclude covalent_ui/webapp/ *
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.228.0-rc.0
0.229.0-rc.0
53 changes: 0 additions & 53 deletions build/lib/covalent_migrations/README.md

This file was deleted.

106 changes: 0 additions & 106 deletions build/lib/covalent_migrations/alembic.ini

This file was deleted.

3 changes: 3 additions & 0 deletions covalent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
lattice,
)
from ._workflow.electron import wait # nopycln: import
from ._workflow.qelectron import qelectron # nopycln: import
from .executor.utils import get_context # nopycln: import
from .quantum import QCluster # nopycln: import

__all__ = [s for s in dir() if not s.startswith("_")]

Expand Down
4 changes: 2 additions & 2 deletions covalent/_file_transfer/strategies/rsync_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def get_rsync_ssh_cmd(
remote_filepath = remote_file.filepath
args = ["rsync"]
if self.private_key_path:
args.append(f'-e "ssh -i {self.private_key_path}"')
args.append(f'-ae "ssh -i {self.private_key_path}"')
else:
args.append("-e ssh")
args.append("-ae ssh")

remote_source = f"{self.user}@{self.host}:{remote_filepath}"

Expand Down
Loading

0 comments on commit 59800d2

Please sign in to comment.