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

Let's upgrade to node 6 #78

Merged
merged 14 commits into from
Aug 17, 2017
Merged

Let's upgrade to node 6 #78

merged 14 commits into from
Aug 17, 2017

Conversation

lakshmi-kannan
Copy link
Contributor

@lakshmi-kannan lakshmi-kannan commented Jul 12, 2017

closes #68
fixes #56

This should be merged only when we are ready to release st2 2.4.0

@arm4b
Copy link
Member

arm4b commented Jul 12, 2017

Upgrading to node 6 will also pull the following:

first ideas, but could be also something else ¯_(ツ)_/¯

@@ -14,6 +14,8 @@ TimeoutSec=60
PrivateTmp=true
Restart=on-failure
RestartSec=5
StandardOutput=syslog+console
StandardError=syslog+console
Copy link
Member

@arm4b arm4b Jul 26, 2017

Choose a reason for hiding this comment

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

Does that fix hubot logging bug described here: StackStorm/st2-packages#300 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not. This directive instructs journalctl to write to console which should get logged to /var/log according to docs but it doesn't. So sad.

Copy link
Member

@arm4b arm4b Jul 26, 2017

Choose a reason for hiding this comment

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

With this param, feels like the truth is out there.

Let's try this for st2chatops.service:

- ExecStart=/opt/stackstorm/chatops/bin/hubot $DAEMON_ARGS
+ ExecStart=exec bin/hubot $DAEMON_ARGS >> /var/log/st2/st2chatops.log 2>&1

package.json Outdated
@@ -19,9 +19,9 @@
"hubot-xmpp" : "git+https://github.com/markstory/hubot-xmpp.git#94c3438e42778c53e38f6909939c514da50a0dca",
"hubot-hipchat" : "git+https://github.com/StackStorm/hubot-hipchat#sonnyp-patch",
"hubot-irc" : "git+https://github.com/nandub/hubot-irc#51d1f4b418fc039a456b7891c7f9bf836699cfdc",
"hubot-slack" : "^3.4.2"
"hubot-slack" : "^4.3.4"
Copy link
Member

Choose a reason for hiding this comment

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

From the reports in GitHub #56 (comment), StackStorm/st2docs#418 and community, this should also fix proxy support for Slack adapter 👍
cc @ytjohn

debian/control Outdated
@@ -11,7 +11,7 @@ Vcs-Browser: https://github.com/stackstorm/st2chatops
Package: st2chatops
Architecture: any
Pre-Depends: dpkg (>= 1.16.16)
Depends: nodejs (>= 4.0.0)
Depends: nodejs (>= 6.0.0)
Copy link
Member

Choose a reason for hiding this comment

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

Considering nodejs epopeya https://github.com/StackStorm/ops-infra/pull/206, please pin node versions to 6 for both deb/rpm.
So we won't install any node7 or node8 or whatever in future.

@arm4b arm4b self-assigned this Aug 14, 2017
# Conflicts:
#	packagingenv/jessie/Dockerfile
#	packagingenv/wheezy/Dockerfile
#	testingenv/jessie/Dockerfile
#	testingenv/wheezy/Dockerfile
@arm4b arm4b force-pushed the issue_68/upgrade_to_node_6 branch from 304bc66 to 2d09a69 Compare August 15, 2017 18:57
armab added 5 commits August 16, 2017 21:29
Fixing the build optional dependency:
 ```
 make[2]: Entering directory `/root/st2chatops/node_modules/node-icu-charset-detector/build'
  CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
../node-icu-charset-detector.cpp:7:28: fatal error: unicode/ucsdet.h: No such file or directory
 #include <unicode/ucsdet.h>
 ```
@arm4b arm4b merged commit 3d52f4f into master Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Node.js v6.x Need updated hubot-slack once they release 4.0.2
2 participants