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

fix(admin-server): Fix broken build command #13017

Merged
merged 1 commit into from
May 25, 2022
Merged

Conversation

dschom
Copy link
Contributor

@dschom dschom commented May 24, 2022

Because

  • There were issues starting the admin-server.

This pull request

  • Introduces a development.json to solve issues with missing dev settings.
  • Make sure the dist folder is actually cleaned. It was possible that a stale config.js file could cause problems.
  • Make sure build runs without error and config/*.json files are copied over.

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Other information (Optional)

Trying to address CI failure, and issues other developers had starting admin-server.

@dschom dschom requested a review from a team as a code owner May 24, 2022 22:48
Because:
- There were issues starting the admin-server.

This Commit:
- Introduces a dev.json to solve issues with missing dev settings.
- Make sure the dist folder is actually cleaned. It was possible that a stale config.js file could cause problems.
- Make sure build is run and config/*.json files are copied over.
@dschom dschom force-pushed the fix-admin-server-ci-issue branch from d1500e5 to 17e2f77 Compare May 24, 2022 22:56
@@ -4,10 +4,10 @@
"description": "FxA GraphQL Admin Server",
"scripts": {
"prebuild": "rimraf dist",
"build": "yarn nest build && cp ./src/config/*.json ./dist/config",
"build": "yarn prebuild && yarn nest build && cp ./src/config/*.json ./dist/config",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought prebuild should run when yarn build was executed, but it doesn't seem to be the case...

Copy link
Contributor

@biancadanforth biancadanforth left a comment

Choose a reason for hiding this comment

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

Thanks Dan; I can confirm that fxa-admin-server builds successfully with this patch checked out.

For posterity, the error can be seen at https://app.circleci.com/pipelines/github/mozilla/fxa/30574/workflows/dce7b0cf-e47f-4eb8-b902-2e340bd0c2eb/jobs/336521/artifacts in the artifacts/fxa-builder.log file.

This is a separate issue, but when I run npx yarn workspaces foreach --topological-dev --verbose run build (which is what I used to reproduce this locally), I also see that the fxa-admin-panel is failing to build. Do you see that as well?

@dschom dschom merged commit 276ffd8 into main May 25, 2022
@biancadanforth biancadanforth deleted the fix-admin-server-ci-issue branch May 25, 2022 16:55
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.

2 participants