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

Tests run_until must be guard-claused with cleanup routine #616

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

ArneTR
Copy link
Member

@ArneTR ArneTR commented Dec 22, 2023

The tests functions use the function run_until

This does no automatic cleanup. We had a regression that the tests were not running anymore because the call was not guard claused.

@ArneTR
Copy link
Member Author

ArneTR commented Dec 22, 2023

@ribalba This fixes the NetworkConnectionsProxyContainerProvider not empty stderr we are seeing. Assuming the tests will run ...

Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run 10.8614 1900.29 2.6067 742
Measurement #1 10.9711 1900.29 2.6067 731

📈 Energy graph:

 
 7.69 ┤                                                                                         ╭╮                   ╭╮
 7.10 ┤                                                                                         ││                   ││
 6.51 ┤                                                                                         ││              ╭╮   ││ ╭╮
 5.92 ┤                                                                                         │╰╮            ╭╯│   │╰╮││
 5.32 ┤                                                                                         │ │            │ ╰─╮ │ │││
 4.73 ┤                                                                        ╭─╮   ╭╮         │ ╰──────╮    ╭╯   │ │ ╰╯│
 4.14 ┤       ╭╮╭╮   ╭╮  ╭──╮  ╭─╮     ╭─╮                          ╭─╮       ╭╯ ╰╮  │╰╮       ╭╯        │    │    ╰╮│   │         ╭╮ ╭╮╭╮                              ╭╮ ╭╮ ╭╮  ╭╮           ╭╮                                                        ╭╮ ╭─────╮                         ╭╮╭╮                        ╭╮                      ╭╮            ╭─╮                         ╭╮                         ╭─╮                       ╭╮                            ╭╮                           ╭─╮                          ╭─╮                           ╭╮                        ╭╮                                                                                                                             ╭╮╭─╮
 3.55 ┤      ╭╯╰╯╰───╯╰──╯  ╰──╯ ╰───╮╭╯ ╰──────────────────────────╯ ╰───────╯   │╭─╯ ╰─╮╭╮ ╭─╯         ╰╮   │     ││   ╰╮       ╭╯│╭╯││╰─╮          ╭╮         ╭─╮╭───╯╰─╯╰─╯╰──╯╰─╮         │╰──╮        ╭───╮         ╭──╮         ╭──╮         ╭──╮╭╯╰─╯     ╰─────╮ ╭───────╮         │╰╯│         ╭──╮         ╭─╯│         ╭──╮         │╰─╮         ╭╯ ╰╮         ╭╮        ╭╮ ╭─╯╰─╮                  ╭╮ ╭─╯ ╰╮                  ╭╮ ╭╯╰─╮          ╭╮╭╮        ╭╮ ╭╯╰─╮          ╭╮         ╭╮ ╭╯ ╰╮          ╭╮╭╮        ╭╮ │ ╰─╮          ╭╮╭╮        ╭╮ │╰─╮          ╭─╮         │╰─╮          ╭─╮         ╭─╮         ╭───╮           ╭╮╭╮╭╮          ╭──╮          ╭╮            ╭──╮          ╭╮           ╭─╯╰╯ ╰─╮          ╭╮          ╭╮╭─
 2.95 ┤      │                       ││                                           ╰╯     ╰╯│ │            │   │     ││    │      ╭╯ ││ ││  │         ╭╯│╭╮       │ ││                │         │   │        │   │         │  │         │  │         │  ││               │╭╯       │         │  │         │  │         │  │         │  │         │  │         │   │         ││        ││ │    │                  ││ │    │        ╭╮        ││ │   │          ││││        ││ │   │          ││         │╰╮│   ╰╮         ││││        ││ │   │          ││││        ││ │  │         ╭╯ │         │  │         ╭╯ │         │ ╰╮        │   │          ╭╯│││││          │  ╰╮         │╰╮           │  │         ╭╯│           │       │          ││╭╮       ╭╯││
 2.36 ┤    ╭─╯                       ╰╯                                                    │ │            │ ╭╮│     ╰╯    │      │  ╰╯ ╰╯  │       ╭╮│ ╰╯│       │ ││                │         │   │        │   │         │  │         │  │         │  ││               ╰╯        │         │  │         │  │         │  │         │  │         │  ╰╮        │   ╰╮        ││        ││ │    │        ╭╮        ││ │    │        ││        ││ │   ╰╮       ╭╮│╰╯│        ││ │   │         ╭╯│╭╮       │ ││    │       ╭╮│╰╯│        ││ │   │        ╭─╯╰╯│        ││ │  │         │  │         │  │         │  │         │  │        │   │        ╭─╯ ╰╯│││       ╭╮ │   │       ╭╮│ ╰╮          │  │         │ │╭╮         │       ╰╮       ╭╮│╰╯│       │ ││
 1.77 ┼────╯                                                                               ╰─╯            ╰─╯╰╯           ╰──────╯         ╰───────╯╰╯   ╰───────╯ ╰╯                ╰─────────╯   ╰────────╯   ╰─────────╯  ╰─────────╯  ╰─────────╯  ╰╯                         ╰─────────╯  ╰─────────╯  ╰─────────╯  ╰─────────╯  ╰─────────╯   ╰────────╯    ╰────────╯╰────────╯╰─╯    ╰────────╯╰────────╯╰─╯    ╰────────╯╰────────╯╰─╯    ╰───────╯╰╯  ╰────────╯╰─╯   ╰─────────╯ ╰╯╰───────╯ ╰╯    ╰───────╯╰╯  ╰────────╯╰─╯   ╰────────╯    ╰────────╯╰─╯  ╰─────────╯  ╰─────────╯  ╰─────────╯  ╰─────────╯  ╰────────╯   ╰────────╯     ╰╯╰───────╯╰─╯   ╰───────╯╰╯  ╰──────────╯  ╰─────────╯ ╰╯╰─────────╯        ╰───────╯╰╯  ╰───────╯ ╰╯
                                                                                                                                                                                                                                                                                                                                                                            Watts over time

@ArneTR ArneTR merged commit 7445176 into main Dec 22, 2023
4 checks passed
ArneTR added a commit that referenced this pull request Dec 22, 2023
* main:
  Hotfix for check on frequency provider
  Tests run_until must be guard-claused with cleanup routine (#616)
@ArneTR ArneTR deleted the tests-fix-run-until branch December 22, 2023 11:10
ArneTR added a commit that referenced this pull request Dec 22, 2023
* main:
  Switched from cmd to command (#615)
  Hotfix for check on frequency provider
  Tests run_until must be guard-claused with cleanup routine (#616)
ArneTR added a commit that referenced this pull request Dec 22, 2023
* main:
  Switched from cmd to command (#615)
  Hotfix for check on frequency provider
  Tests run_until must be guard-claused with cleanup routine (#616)
  Fix check if stderr is empty (#613)
  Bump uvicorn[standard] from 0.24.0.post1 to 0.25.0 (#612)
  Fxing the network provider stderror
ArneTR added a commit that referenced this pull request Dec 22, 2023
* main:
  Hotfix for check on frequency provider
  Tests run_until must be guard-claused with cleanup routine (#616)
  Fix check if stderr is empty (#613)
  Bump uvicorn[standard] from 0.24.0.post1 to 0.25.0 (#612)
  Fxing the network provider stderror
  Branch and filename are now always not null (#602)
  Adds a more elaborate depends_on test
  Support reading notes from services (#590)
  docker build command in tests now checks reason for docker build failure. If it is a permission issue with the cache, it will continue the rest of the workflow (#576)
  Use depends_on for container startup order (refactored) (#593)
  Bump psycopg[binary] from 3.1.15 to 3.1.16 (#610)
  Added powercap info to hardware_info (#609)
  Changed wording for network infrastructure box (#608)
  Added SIGQUIT to nginx and initi to gunicorn, as we are using bash script in entrypoint (#605)
  Fix frontend flow menu to wrap automatically (#584)
  Bump psutil from 5.9.6 to 5.9.7 (#603)
  Disable Docker CLI hints (#555)
  Create codeql.yml
ArneTR added a commit that referenced this pull request Dec 23, 2023
* main: (26 commits)
  Disable tinyproxy systemd service (#623)
  Text change
  Value formatting on status page
  Normalized URL for machines endpoint
  Less confusing error messages
  Status has now a waiting time (#599)
  Run ID is now accessible even after fail and thus can be sent via ema… (#601)
  Switched from cmd to command (#615)
  Hotfix for check on frequency provider
  Tests run_until must be guard-claused with cleanup routine (#616)
  Fix check if stderr is empty (#613)
  Bump uvicorn[standard] from 0.24.0.post1 to 0.25.0 (#612)
  Fxing the network provider stderror
  Branch and filename are now always not null (#602)
  Adds a more elaborate depends_on test
  Support reading notes from services (#590)
  docker build command in tests now checks reason for docker build failure. If it is a permission issue with the cache, it will continue the rest of the workflow (#576)
  Use depends_on for container startup order (refactored) (#593)
  Bump psycopg[binary] from 3.1.15 to 3.1.16 (#610)
  Added powercap info to hardware_info (#609)
  ...
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.

None yet

1 participant