Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR1] Move .env.simulation to .env in run_system_tests workflow #499

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

MounikaBattu17
Copy link
Contributor

@MounikaBattu17 MounikaBattu17 commented Nov 2, 2023

What does this Pull Request accomplish?

  • Driver acceptance tests needs .env file in root directory to simulate driver instruments, so moved examples/.env.simulation to .env in pipeline such that it runs acceptance tests without any errors.
  • The configuration in .env overrides the session parameter default values in unit tests that doesn't use simulation mode, which fails the tests. So to resolve this issue, passed in the default values when calling initialize session in unit tests.

Why should this Pull Request be merged?

To run acceptance tests that uses simulated instrument drivers in pipeline.

What testing has been done?

Manually ran poetry run pytest.

Copy link

github-actions bot commented Nov 2, 2023

Test Results

       30 files  ±0         30 suites  ±0   35m 32s ⏱️ - 2m 54s
     484 tests ±0       484 ✔️ ±0         0 💤 ±0  0 ±0 
12 440 runs  ±0  11 380 ✔️ ±0  1 060 💤 ±0  0 ±0 

Results for commit 56ba564. ± Comparison against base commit c006e82.

♻️ This comment has been updated with latest results.

@MounikaBattu17 MounikaBattu17 changed the title Rename .env.simulation to .env in run_system_tests Move .env.simulation to .env in run_system_tests workflow Nov 2, 2023
@MounikaBattu17 MounikaBattu17 changed the title Move .env.simulation to .env in run_system_tests workflow [PR1] Move .env.simulation to .env in run_system_tests workflow Nov 2, 2023
@MounikaBattu17
Copy link
Contributor Author

MounikaBattu17 commented Nov 2, 2023

Now, we see that having .env file in root folder doesn't affect the tests, there is a suggestion PR to move .env.simulation & .env.sample back to root folder itself. Please provide your comments on this.

cc: @bkeryan @dixonjoel

Copy link
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is ok. You should copy the .env file instead of moving it, though.

@MounikaBattu17 MounikaBattu17 merged commit 71ffb3d into main Nov 2, 2023
@dixonjoel dixonjoel deleted the users/mounika/use-.env-pipeline branch November 27, 2023 17:57
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.

5 participants