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

Release 0.73.1 #13052

Merged
merged 4 commits into from
Dec 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 126 additions & 82 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,74 @@
defaults: &defaults
working_directory: ~/repo

attach_workspace: &attach_workspace
at: /tmp

test-install-dependencies: &test-install-dependencies
name: Install dependencies
command: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org-shell google-chrome-stable

test-run: &test-run
name: Run Tests
command: |
for i in $(seq 1 5); do mongo rocketchat --eval 'db.dropDatabase()' && npm test && s=0 && break || s=$? && sleep 1; done; (exit $s)

test-npm-install: &test-npm-install
name: NPM install
command: |
npm install

test-store_artifacts: &test-store_artifacts
path: .screenshots/

test-configure-replicaset: &test-configure-replicaset
name: Configure Replica Set
command: |
mongo --eval 'rs.initiate({_id:"rs0", members: [{"_id":1, "host":"localhost:27017"}]})'
mongo --eval 'rs.status()'

test-docker-image: &test-docker-image
circleci/node:8.11-browsers

test: &test
<<: *defaults
environment: &test-environment
TEST_MODE: "true"
MONGO_URL: mongodb://localhost:27017/rocketchat


test-with-oplog: &test-with-oplog
<<: *test
environment:
<<: *test-environment
MONGO_OPLOG_URL: mongodb://localhost:27017/local

steps:
- attach_workspace: *attach_workspace
- checkout
- run: *test-install-dependencies
- run: *test-configure-replicaset
- run: *test-npm-install
- run: *test-run
- store_artifacts: *test-store_artifacts

test-without-oplog: &test-without-oplog
<<: *test
steps:
- attach_workspace: *attach_workspace
- checkout
- run: *test-install-dependencies
- run: *test-npm-install
- run: *test-run
- store_artifacts: *test-store_artifacts


version: 2
jobs:
build:
Expand Down Expand Up @@ -132,91 +200,60 @@ jobs:
- store_artifacts:
path: /tmp/build

test-with-oplog:
<<: *defaults

test-with-oplog-mongo-3-2:
<<: *test-with-oplog
docker:
- image: circleci/node:8.11-browsers
- image: mongo:4.0
- image: *test-docker-image
- image: mongo:3.2
command: [mongod, --noprealloc, --smallfiles, --replSet=rs0]

environment:
TEST_MODE: "true"
MONGO_URL: mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL: mongodb://localhost:27017/local

steps:
- attach_workspace:
at: /tmp

- checkout

- run:
name: Install dependencies
command: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org-shell google-chrome-stable

- run:
name: Configure Replica Set
command: |
mongo --eval 'rs.initiate({_id:"rs0", members: [{"_id":1, "host":"localhost:27017"}]})'
mongo --eval 'rs.status()'

- run:
name: NPM install
command: |
npm install

- run:
name: Run Tests
command: |
for i in $(seq 1 5); do mongo rocketchat --eval 'db.dropDatabase()' && npm test && s=0 && break || s=$? && sleep 1; done; (exit $s)

- store_artifacts:
path: .screenshots/
test-with-oplog-mongo-3-4:
<<: *test-with-oplog
docker:
- image: *test-docker-image
- image: mongo:3.4
command: [mongod, --noprealloc, --smallfiles, --replSet=rs0]

test-without-oplog:
<<: *defaults
test-with-oplog-mongo-3-6:
<<: *test-with-oplog
docker:
- image: circleci/node:8.11-browsers
- image: circleci/mongo:4.0
- image: *test-docker-image
- image: mongo:3.6
command: [mongod, --noprealloc, --smallfiles, --replSet=rs0]

environment:
TEST_MODE: "true"
MONGO_URL: mongodb://localhost:27017/rocketchat
test-with-oplog-mongo-4-0:
<<: *test-with-oplog
docker:
- image: *test-docker-image
- image: mongo:4.0
command: [mongod, --noprealloc, --smallfiles, --replSet=rs0]

steps:
- attach_workspace:
at: /tmp

- checkout
test-without-oplog-mongo-3-2:
<<: *test-without-oplog
docker:
- image: *test-docker-image
- image: mongo:3.2

- run:
name: Install dependencies
command: |
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org-shell google-chrome-stable
test-without-oplog-mongo-3-4:
<<: *test-without-oplog
docker:
- image: *test-docker-image
- image: mongo:3.4

- run:
name: NPM install
command: |
npm install
test-without-oplog-mongo-3-6:
<<: *test-without-oplog
docker:
- image: *test-docker-image
- image: mongo:3.6

- run:
name: Run Tests
command: |
for i in $(seq 1 5); do mongo rocketchat --eval 'db.dropDatabase()' && npm test && s=0 && break || s=$? && sleep 1; done; (exit $s)
test-without-oplog-mongo-4-0:
<<: *test-without-oplog
docker:
- image: *test-docker-image
- image: mongo:4.0

- store_artifacts:
path: .screenshots/

deploy:
<<: *defaults
Expand Down Expand Up @@ -378,22 +415,29 @@ workflows:
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$/
- test-with-oplog:
requires:
- build
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$/
- test-without-oplog:
- test-with-oplog-mongo-3-2: &test-mongo
requires:
- build
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$/
- test-with-oplog-mongo-3-4: *test-mongo
- test-with-oplog-mongo-3-6: *test-mongo
- test-with-oplog-mongo-4-0: *test-mongo
- test-without-oplog-mongo-3-2: *test-mongo
- test-without-oplog-mongo-3-4: *test-mongo
- test-without-oplog-mongo-3-6: *test-mongo
- test-without-oplog-mongo-4-0: *test-mongo
- deploy:
requires:
- test-with-oplog
- test-without-oplog
- test-with-oplog-mongo-3-2
- test-with-oplog-mongo-3-4
- test-with-oplog-mongo-3-6
- test-with-oplog-mongo-4-0
- test-without-oplog-mongo-3-2
- test-without-oplog-mongo-3-4
- test-without-oplog-mongo-3-6
- test-without-oplog-mongo-4-0
filters:
branches:
only: develop
Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7

ENV RC_VERSION 0.73.0
ENV RC_VERSION 0.73.1

MAINTAINER [email protected]

Expand Down
39 changes: 39 additions & 0 deletions .github/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -24468,6 +24468,45 @@
]
}
]
},
"0.73.1": {
"node_version": "8.11.4",
"npm_version": "6.4.1",
"mongo_versions": [
"3.2",
"3.4",
"3.6",
"4.0"
],
"pull_requests": [
{
"pr": "13049",
"title": "Execute tests with versions 3.2, 3.4, 3.6 and 4.0 of MongoDB",
"userLogin": "rodrigok",
"milestone": "0.73.1",
"contributors": [
"rodrigok"
]
},
{
"pr": "13051",
"title": "Regression: Get room's members list not working on MongoDB 3.2",
"userLogin": "sampaiodiego",
"milestone": "0.73.1",
"contributors": [
"sampaiodiego"
]
},
{
"pr": "13045",
"title": "[FIX] Default importer path",
"userLogin": "sampaiodiego",
"milestone": "0.73.1",
"contributors": [
"sampaiodiego"
]
}
]
}
}
}
4 changes: 2 additions & 2 deletions .sandstorm/sandstorm-pkgdef.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const pkgdef :Spk.PackageDefinition = (

appTitle = (defaultText = "Rocket.Chat"),

appVersion = 121, # Increment this for every release.
appVersion = 122, # Increment this for every release.

appMarketingVersion = (defaultText = "0.73.0"),
appMarketingVersion = (defaultText = "0.73.1"),
# Human-readable representation of appVersion. Should match the way you
# identify versions of your app in documentation and marketing.

Expand Down
2 changes: 1 addition & 1 deletion .travis/snap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ elif [[ $TRAVIS_TAG ]]; then
RC_VERSION=$TRAVIS_TAG
else
CHANNEL=edge
RC_VERSION=0.73.0
RC_VERSION=0.73.1
fi

echo "Preparing to trigger a snap release for $CHANNEL channel"
Expand Down
27 changes: 26 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@

# 0.73.1
`2018-12-28 · 1 🐛 · 2 🔍 · 2 👩‍💻👨‍💻`

### Engine versions
- Node: `8.11.4`
- NPM: `6.4.1`
- MongoDB: `3.2, 3.4, 3.6, 4.0`

### 🐛 Bug fixes

- Default importer path ([#13045](https://github.com/RocketChat/Rocket.Chat/pull/13045))

<details>
<summary>🔍 Minor changes</summary>

- Execute tests with versions 3.2, 3.4, 3.6 and 4.0 of MongoDB ([#13049](https://github.com/RocketChat/Rocket.Chat/pull/13049))
- Regression: Get room's members list not working on MongoDB 3.2 ([#13051](https://github.com/RocketChat/Rocket.Chat/pull/13051))

</details>

### 👩‍💻👨‍💻 Core Team 🤓

- [@rodrigok](https://github.com/rodrigok)
- [@sampaiodiego](https://github.com/sampaiodiego)

# 0.73.0
`2018-12-27 · 10 🎉 · 9 🚀 · 34 🐛 · 84 🔍 · 26 👩‍💻👨‍💻`
`2018-12-28 · 10 🎉 · 9 🚀 · 34 🐛 · 84 🔍 · 26 👩‍💻👨‍💻`

### Engine versions
- Node: `8.11.4`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Rocket.Chat",
"description": "The Ultimate Open Source WebChat Platform",
"version": "0.73.0",
"version": "0.73.1",
"author": {
"name": "Rocket.Chat",
"url": "https://rocket.chat/"
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-importer/server/startup/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export let RocketChatImportFileInstance;
Meteor.startup(function() {
const RocketChatStore = RocketChatFile.FileSystem;

let path = '~/uploads';
let path = '/tmp/rocketchat-importer';
if (RocketChat.settings.get('ImportFile_FileSystemPath') != null) {
if (RocketChat.settings.get('ImportFile_FileSystemPath').trim() !== '') {
path = RocketChat.settings.get('ImportFile_FileSystemPath');
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/rocketchat.info
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.73.0"
"version": "0.73.1"
}
11 changes: 10 additions & 1 deletion packages/rocketchat-statistics/server/functions/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,18 @@ RocketChat.statistics.get = function _getStatistics() {
statistics.migration = RocketChat.Migrations._getControl();
statistics.instanceCount = InstanceStatus.getCollection().find({ _updatedAt: { $gt: new Date(Date.now() - process.uptime() * 1000 - 2000) } }).count();

if (MongoInternals.defaultRemoteCollectionDriver().mongo._oplogHandle && MongoInternals.defaultRemoteCollectionDriver().mongo._oplogHandle.onOplogEntry && RocketChat.settings.get('Force_Disable_OpLog_For_Cache') !== true) {
const { mongo } = MongoInternals.defaultRemoteCollectionDriver();

if (mongo._oplogHandle && mongo._oplogHandle.onOplogEntry && RocketChat.settings.get('Force_Disable_OpLog_For_Cache') !== true) {
statistics.oplogEnabled = true;
}

try {
const { version } = Promise.await(mongo.db.command({ buildInfo: 1 }));
statistics.mongoVersion = version;
} catch (e) {
console.error('Error getting MongoDB version');
}

return statistics;
};
Loading