Skip to content

Setup pubkey on nlx server on test start#1696

Merged
matislovas merged 3 commits intomainfrom
matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server
Mar 4, 2026
Merged

Setup pubkey on nlx server on test start#1696
matislovas merged 3 commits intomainfrom
matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server

Conversation

@matislovas
Copy link
Copy Markdown
Collaborator

@matislovas matislovas commented Mar 2, 2026

Problem

There was some crashes (or race condition) in natlab, when nordvpnlite tests was running first, and nlx server is not prepared by other tests before.

Solution

Prepare nlx server before running all tests.

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from ff8bf47 to 1afabc0 Compare March 2, 2026 13:44
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 1afabc0 to 0690704 Compare March 2, 2026 13:48
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 0690704 to 751c3e2 Compare March 2, 2026 14:06
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 751c3e2 to 323fef3 Compare March 2, 2026 14:15
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 323fef3 to 5cb97d2 Compare March 2, 2026 14:17
@matislovas matislovas changed the title Do not try to setup pubkey on nlx server Setup pubkey on nlx server Mar 2, 2026
@matislovas matislovas changed the title Setup pubkey on nlx server Setup pubkey on nlx server on test start Mar 2, 2026
Copy link
Copy Markdown
Contributor

@gytsto gytsto left a comment

Choose a reason for hiding this comment

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

looks good, just want to see pipeline green before approving

Comment thread nat-lab/tests/config.py Outdated
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 5cb97d2 to b757906 Compare March 2, 2026 16:32
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from b757906 to 05a98c5 Compare March 3, 2026 07:32
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 05a98c5 to 63e3608 Compare March 3, 2026 07:53
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 63e3608 to d5e9f2b Compare March 3, 2026 07:59
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from d5e9f2b to 477d370 Compare March 3, 2026 08:01
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 477d370 to 5e8c8d6 Compare March 3, 2026 09:38
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 50dad14 to 353fd38 Compare March 3, 2026 12:50
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 353fd38 to 643e785 Compare March 3, 2026 12:57
Signed-off-by: Matas Misiunas <matislovas@gmail.com>
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 643e785 to 3349b79 Compare March 3, 2026 12:58
@matislovas matislovas marked this pull request as ready for review March 3, 2026 13:16
@matislovas matislovas requested a review from a team as a code owner March 3, 2026 13:16

async def wait_till_ready(self) -> None:
await self._server_ready_event.wait()
await asyncio.sleep(2.0)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this random sleep xd

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Without this, tests fails, upnp -c trigerred too fast.

Comment thread nat-lab/tests/nordvpnlite.py Outdated
Comment thread nat-lab/tests/nordvpnlite.py Outdated
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 42be7be to 644740c Compare March 4, 2026 07:02
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 644740c to 6021ca7 Compare March 4, 2026 08:05
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 6021ca7 to 22e6ebf Compare March 4, 2026 09:15
Comment thread clis/nordvpnlite/src/core_api.rs Outdated
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 22e6ebf to 2449286 Compare March 4, 2026 10:05
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 2449286 to 12c3e6d Compare March 4, 2026 11:36
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 12c3e6d to 5dee977 Compare March 4, 2026 12:16
Signed-off-by: Matas Misiunas <matislovas@gmail.com>
@matislovas matislovas force-pushed the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch from 5dee977 to 05efc0f Compare March 4, 2026 13:11
Copy link
Copy Markdown
Contributor

@gytsto gytsto left a comment

Choose a reason for hiding this comment

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

+2

@matislovas matislovas added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit a08bf39 Mar 4, 2026
58 checks passed
@matislovas matislovas deleted the matislovas/natlab_fix_nordvpnlite_tests_setup_vpn_server branch March 4, 2026 17:05
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.

3 participants