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

remove ruby build altogether #3035 #3062

Merged
merged 4 commits into from
Apr 11, 2019

Conversation

finnfiddle
Copy link
Contributor

Before the PR (what is the issue or what needed to be done)

Now that we are using webpack for the static assets build - we dont need ruby anymore.

The solution

Remove ruby and all deps.

Screenshots (if appropriate)

Checklist

  • Connect the issue
  • Test plan
  • Copyright header
  • Code formatting
  • Documentation

@finnfiddle finnfiddle requested a review from dlebrero April 10, 2019 11:08
@finnfiddle finnfiddle self-assigned this Apr 10, 2019
@finnfiddle finnfiddle requested a review from muloem April 10, 2019 11:19
Copy link
Contributor

@dlebrero dlebrero left a comment

Choose a reason for hiding this comment

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

With a clean checkout, I am getting an error, which I guess is due to running npm install and npm run in parallel as a mention in another comment:

kvo-flow_1 | > akvo-flow@ build:dev /app/src/Dashboard
akvo-flow_1 | > babel-node ./scripts/buildDev.js
akvo-flow_1 |
akvo-flow_1 | sh: babel-node: not found
akvo-flow_1 | npm ERR! file sh
akvo-flow_1 | npm ERR! code ELIFECYCLE
akvo-flow_1 | npm ERR! errno ENOENT
akvo-flow_1 | npm ERR! syscall spawn
akvo-flow_1 | npm ERR! akvo-flow@ build:dev: babel-node ./scripts/buildDev.js
akvo-flow_1 | npm ERR! spawn ENOENT
akvo-flow_1 | npm ERR!
akvo-flow_1 | npm ERR! Failed at the akvo-flow@ build:dev script.
akvo-flow_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
akvo-flow_1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?

ci/devserver.sh Outdated
bundle exec npm install &
bundle exec npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 &
npm install &
npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 &
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to run npm install and npm run in parallel? I understand that this is not new behavior but I am surprised nonetheless

Copy link
Contributor

Choose a reason for hiding this comment

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

How is this resolved? It is causing the issue described above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isnt it fixed now @dlebrero

Copy link
Contributor

Choose a reason for hiding this comment

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

It is not. Running npm install and npm run at the same time is causing the above issue.

Copy link
Contributor Author

@finnfiddle finnfiddle Apr 11, 2019

Choose a reason for hiding this comment

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

does this not run them sequentially?

npm install
npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 &

@dlebrero
Copy link
Contributor

@stellanl
Copy link
Contributor

stellanl commented Apr 11, 2019

Building this branch on my Linux machine (which has npm 3.5.2 installed) after clearing the target directory I get a number of npm warnings, but no error for /app/src/Dashboard:

akvo-flow_1_dbc781e50605 | Compiling "../../../GAE/target/akvo-flow/admin/frames/users.js" from ["src"]...
akvo-flow_1_dbc781e50605 | npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
akvo-flow_1_dbc781e50605 | npm WARN [email protected] requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
akvo-flow_1_dbc781e50605 | npm WARN [email protected] requires a peer of handlebars@>= 1.3.0 < 5 but none is installed. You must install peer dependencies yourself.
akvo-flow_1_dbc781e50605 | npm WARN akvo-flow@ No repository field.
akvo-flow_1_dbc781e50605 | npm WARN akvo-flow@ No license field.
akvo-flow_1_dbc781e50605 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
akvo-flow_1_dbc781e50605 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
akvo-flow_1_dbc781e50605 | 
akvo-flow_1_dbc781e50605 | added 67 packages in 11.803s

@finnfiddle
Copy link
Contributor Author

@dlebrero ok should be resolved now everything

@finnfiddle finnfiddle merged commit c9cb908 into develop Apr 11, 2019
@@ -1,3 +1,4 @@
b
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dlebrero is this meant to be here?

Copy link
Contributor

Choose a reason for hiding this comment

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

No.

@muloem muloem deleted the issue/3035-remove-ruby-build-altogether branch April 15, 2019 10:59
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