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

Improve server startup messages #826

Merged
merged 5 commits into from May 1, 2024
Merged

Conversation

jameshadfield
Copy link
Member

Closes #685

@victorlin could you take a look at this, especially with how it may pertain to someone running the server as a groups app?

@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-james-serv-tvofsu April 11, 2024 22:58 Inactive
@victorlin victorlin self-requested a review April 11, 2024 23:27
src/cognito.js Outdated Show resolved Hide resolved
src/startupMessage.js Outdated Show resolved Hide resolved
@victorlin victorlin force-pushed the james/server-startup-message branch from 2d8569f to 433a14c Compare April 19, 2024 22:03
@victorlin
Copy link
Member

Force-pushed to account for conflicts from #834 – notably d9f7e22 changed to 3fda886

jameshadfield added a commit that referenced this pull request Apr 23, 2024
The server is now often _not_ running at nextstrain.org; the core team
runs additional dev + canary servers, we have heroku review apps as well
as external groups who run our server. And I presume most of the people
reading the startup message are actually running locally.

See <#826 (comment)>
for further discussion.
jameshadfield added a commit that referenced this pull request Apr 23, 2024
We use Promise.allSettled in the expectation that the server will
eventually call multiple async functions and we want to settle them all
before printing the message.

The AWS info is not displayed when using our server as a "groups server",
as per commentary in <#826 (comment)>
src/startupMessage.js Outdated Show resolved Hide resolved
server.js Outdated Show resolved Hide resolved
@tsibley tsibley changed the title Improrve server startup messages Improve server startup messages Apr 24, 2024
src/aws.js Outdated Show resolved Hide resolved
src/aws.js Outdated Show resolved Hide resolved
src/startupMessage.js Outdated Show resolved Hide resolved
src/startupMessage.js Outdated Show resolved Hide resolved
src/groups.js Outdated Show resolved Hide resolved
jameshadfield added a commit that referenced this pull request Apr 29, 2024
We attempt to report the IAM user (or ARN) for any provided AWS
credentials. See review commentary in
<#826> for why this is
desirable for all users, including those who are using the "Nextstrain
groups" server.
src/aws.js Outdated Show resolved Hide resolved
package-lock.json Show resolved Hide resolved
In preparation for upcoming additions. The additions will require async
calls so we add a simple log statement at the earliest time the server
is actually listening which may be helpful for certain debugging
situations.
The server is now often _not_ running at nextstrain.org; the core team
runs additional dev + canary servers, we have Heroku review apps as well
as external groups who run our server. (And I presume most of the people
reading the startup message are actually running locally.)
We attempt to report the IAM user (or ARN) for any provided AWS
credentials. See review commentary in
<#826> for why this is
desirable for all users, including those who are using the "Nextstrain
groups" server.
The server requires us to specify a file defining available groups, but
this is env / config defined and so changes depending on the
environment. Printing a brief summary is helpful for debugging /
reminding ourselves what groups are in play.
@jameshadfield jameshadfield merged commit 31ecbc4 into master May 1, 2024
4 checks passed
@jameshadfield jameshadfield deleted the james/server-startup-message branch May 1, 2024 22:30
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.

[dev only] explain configuration settings in server start up message
4 participants