Skip to content

Feat/algorithm builder framework - #6

Merged
SeCuReDmE-main-dev merged 3 commits into
PaQBoTfrom
feat/algorithm-builder-framework
Jul 16, 2025
Merged

Feat/algorithm builder framework#6
SeCuReDmE-main-dev merged 3 commits into
PaQBoTfrom
feat/algorithm-builder-framework

Conversation

@SeCuReDmE-main-dev

Copy link
Copy Markdown
Owner

No description provided.

…esigners

This commit introduces unit tests and comprehensive documentation for the
Algorithm Builder and Classical Circuit Designer features within the
ReaAaS-N-frontend project.

Key additions:
- **Testing Framework:**
  - Configured Vitest and React Testing Library for unit and component testing.
- **Unit Tests:**
  - Added unit tests for core logic in the Algorithm Builder (step management,
    NL input parsing).
  - Added unit tests for the Circuit Designer's simulation engine
    (`calculateCircuitState`) and save/load functionality.
- **Documentation:**
  - Created `docs/AlgorithmBuilderGuide.md`: Detailed user guide for the
    Algorithm Builder.
  - Created `docs/CircuitDesignerGuide.md`: Detailed user guide for the
    Classical Circuit Designer.
  - Created `docs/E2E_Test_Scenarios.md`: Outlines end-to-end testing
    procedures for both tools.
  - Updated `ReaAaS-N-frontend/README.md`: Enhanced the main frontend README
    to describe these features, link to the new guides, and include
    setup/testing instructions.

This work improves the robustness and usability of the frontend tools.
…esigners

This commit introduces unit tests and comprehensive documentation for the
Algorithm Builder and Classical Circuit Designer features within the
ReaAaS-N-frontend project.

Key additions:
- **Testing Framework:**
  - Configured Vitest and React Testing Library for unit and component testing.
- **Unit Tests:**
  - Added unit tests for core logic in the Algorithm Builder (step management,
    NL input parsing).
  - Added unit tests for the Circuit Designer's simulation engine
    (`calculateCircuitState`) and save/load functionality.
- **Documentation:**
  - Created `docs/AlgorithmBuilderGuide.md`: Detailed user guide for the
    Algorithm Builder.
  - Created `docs/CircuitDesignerGuide.md`: Detailed user guide for the
    Classical Circuit Designer.
  - Created `docs/E2E_Test_Scenarios.md`: Outlines end-to-end testing
    procedures for both tools.
  - Updated `ReaAaS-N-frontend/README.md`: Enhanced the main frontend README
    to describe these features, link to the new guides, and include
    setup/testing instructions.

This work improves the robustness and usability of the frontend tools.
@SeCuReDmE-main-dev

Copy link
Copy Markdown
Owner Author

/custom_prompt
--pr_custom_prompt.prompt="please fix all conflict whit the change that make more sense. then add. then commit then push"

@qodo-code-review

Copy link
Copy Markdown

Qodo Merge was enabled for this repository, but no eligible user found. Please link your Git account with your Qodo account here.

@qodo-code-review

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: submit-pypi

Failed stage: validate-project [❌]

Failure summary:

The action failed during Python dependency validation when running pip-compile --dry-run. The
failure occurred because:
• The numphy package's setup.py file (line 7) imports numphy module
• The
numphy/init.py file (line 26) imports from numphy.core
• The numphy/core.py file (line 21) tries
to import wrapt module
ModuleNotFoundError: No module named 'wrapt' - the required dependency
wrapt is missing
• This caused python setup.py egg_info to exit with code 1, leading to metadata
generation failure

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

168:  
169:  enableCrossOsArchive: false
170:  fail-on-cache-miss: false
171:  lookup-only: false
172:  save-always: false
173:  env:
174:  SKIP_CACHE: 
175:  ##[endgroup]
176:  Cache not found for input keys: Linux-pip-python-f46158a8d0efff0c7db03d4c3f96b947dff96ed9f22494524ce6f9834fc5b7fc, Linux-python-
177:  ##[group]Run if pip-compile --dry-run -o requirements.out requirements.txt; then
178:  �[36;1mif pip-compile --dry-run -o requirements.out requirements.txt; then�[0m
179:  �[36;1m  echo "::debug::Python validate no broken dependencies"�[0m
180:  �[36;1m  echo "{valid-project}={true}" >> "$GITHUB_OUTPUT"�[0m
181:  �[36;1melse�[0m
182:  �[36;1m  echo "{valid-project}={false}" >> "$GITHUB_OUTPUT"�[0m
183:  �[36;1m  echo "### :warning: Python validation failed in repository root" >> $GITHUB_STEP_SUMMARY�[0m
184:  �[36;1m  echo "We were unable to validate a Python project in the repository root. If your repository requires additional setup steps, you may need to check in your own workflow." >> $GITHUB_STEP_SUMMARY�[0m
185:  �[36;1m  echo "" >> $GITHUB_STEP_SUMMARY�[0m
186:  �[36;1m  echo "For more information on submitting Python dependencies from your own workflow, refer to [the submission action](https://github.com/actions/component-detection-dependency-submission-action)" >> $GITHUB_STEP_SUMMARY�[0m
187:  �[36;1m  echo "::warning::Python validation failed in the repository root."�[0m
188:  �[36;1m  exit 1�[0m
189:  �[36;1mfi�[0m
190:  shell: /usr/bin/bash -e {0}
191:  env:
192:  SKIP_CACHE: 
193:  ##[endgroup]
194:  error: subprocess-exited-with-error
195:  × python setup.py egg_info did not run successfully.
196:  │ exit code: 1
197:  ╰─> [10 lines of output]
198:  Traceback (most recent call last):
199:  File "<string>", line 2, in <module>
200:  File "<pip-setuptools-caller>", line 34, in <module>
201:  File "/tmp/pip-resolve-mg_to41q/numphy_fd6c28feb36840188c588ecf883e7484/setup.py", line 7, in <module>
202:  import numphy as nph
203:  File "/tmp/pip-resolve-mg_to41q/numphy_fd6c28feb36840188c588ecf883e7484/numphy/__init__.py", line 26, in <module>
204:  from numphy.core import *
205:  File "/tmp/pip-resolve-mg_to41q/numphy_fd6c28feb36840188c588ecf883e7484/numphy/core.py", line 21, in <module>
206:  import wrapt
207:  ModuleNotFoundError: No module named 'wrapt'
208:  [end of output]
209:  note: This error originates from a subprocess, and is likely not a problem with pip.
210:  Traceback (most recent call last):
211:  File "/usr/lib/python3/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 64, in generate_metadata
212:  call_subprocess(
213:  File "/usr/lib/python3/dist-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess
214:  raise error
215:  pip._internal.exceptions.InstallationSubprocessError: python setup.py egg_info exited with 1
216:  The above exception was the direct cause of the following exception:
...

283:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
284:  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
285:  return self._prepare_linked_requirement(req, parallel_builds)
286:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287:  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 640, in _prepare_linked_requirement
288:  dist = _get_prepared_distribution(
289:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
290:  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 71, in _get_prepared_distribution
291:  abstract_dist.prepare_distribution_metadata(
292:  File "/usr/lib/python3/dist-packages/pip/_internal/distributions/sdist.py", line 67, in prepare_distribution_metadata
293:  self.req.prepare_metadata()
294:  File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 585, in prepare_metadata
295:  self.metadata_directory = generate_metadata_legacy(
296:  ^^^^^^^^^^^^^^^^^^^^^^^^^
297:  File "/usr/lib/python3/dist-packages/pip/_internal/operations/build/metadata_legacy.py", line 71, in generate_metadata
298:  raise MetadataGenerationFailed(package_details=details) from error
299:  pip._internal.exceptions.MetadataGenerationFailed: metadata generation failed
300:  ##[warning]Python validation failed in the repository root.
301:  ##[error]Process completed with exit code 1.
302:  Post job cleanup.

@SeCuReDmE-main-dev
SeCuReDmE-main-dev merged commit bde865a into PaQBoT Jul 16, 2025
1 check failed
@SeCuReDmE-main-dev
SeCuReDmE-main-dev deleted the feat/algorithm-builder-framework branch July 16, 2025 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant