Page MenuHomePhabricator

[services] Tests - Read port from the env vars
ClosedPublic

Authored by karol on Jun 28 2022, 7:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 7:23 PM
Unknown Object (File)
Sat, Jul 6, 11:02 AM
Unknown Object (File)
Sat, Jul 6, 11:02 AM
Unknown Object (File)
Sat, Jul 6, 11:02 AM
Unknown Object (File)
Sat, Jul 6, 11:02 AM
Unknown Object (File)
Sat, Jul 6, 11:01 AM
Unknown Object (File)
Sat, Jul 6, 11:01 AM
Unknown Object (File)
Sat, Jul 6, 11:01 AM

Details

Summary

Depends on D4341

Raised in https://phab.comm.dev/D4252#121260

It is better to read the ports from the env vars and limit the number of places where we specify them to the minimum - ideally just one.

Test Plan

Services should work as usual.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 28 2022, 7:33 AM
Harbormaster failed remote builds in B10053: Diff 13902!
karol edited the summary of this revision. (Show Details)
karol edited the test plan for this revision. (Show Details)
karol added a reviewer: tomek.

CI fails because we use raw commands in CI instead of the package json scripts.

tomek added inline comments.
services/commtest/tests/backup_test.rs
25 ↗(On Diff #13902)

Have you formatted this line? It seems too long.

services/scripts/run_integration_tests.sh
42–44 ↗(On Diff #13902)

Could you explain what happens here?

This revision is now accepted and ready to land.Jun 29 2022, 3:30 AM
services/scripts/run_integration_tests.sh
42–44 ↗(On Diff #13902)

I couldn't access env variables from this file without that wrapper.

In order to build functionality, that we need to export variables into the environment so that any of the child processes can use it, we would need the help of allexport to import all the variables.

This revision was landed with ongoing or failed builds.Jul 8 2022, 2:31 AM
This revision was automatically updated to reflect the committed changes.