Commit Graph

278 Commits

Author SHA1 Message Date
Lev
4677b50811 Updated mattermost-plugin-jira to v2.1.2 to fix a failed build (#12151) 2019-09-11 07:34:51 -07:00
scott lee davis
98f7bdcb43 MM-14827 don't kill STDOUT for the server process (#10828) 2019-09-06 19:08:39 +02:00
Michael Kochell
9d937e7f1d bump jira plugin version to 2.1.1 (#12045) 2019-09-05 10:46:10 -07:00
threepwood-mm
782375f5c7 [MM-17703] Diff config files (#11898) 2019-08-29 22:44:12 +02:00
Lev
00021a98b0 Bump bundled Autolink plugin to v1.1.0 (#11872) 2019-08-16 12:53:07 -07:00
Martin Kraft
7e7447eff7 Adds comments to include targets in 'make help'. (#11860)
* Adds comments to include targets in 'make help'.

* Update Makefile

* Update Makefile

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
2019-08-16 08:45:42 +02:00
Michael Kochell
135acbb0b0 introduce jenkins prepackaged v1.0.0 (#11881)
* introduce jenkins prepackaged v1.0.0

* remove debug files

* fix gofmt
2019-08-15 11:44:12 -07:00
Michael Kochell
2ddfc990e9 Bump Jira Plugin version to v2.1.0 (#11884) 2019-08-15 11:43:24 -04:00
Michael Kochell
a6db638f4f introduce gitlab prepackaged v1.0.0 (#11882) 2019-08-15 09:56:25 -04:00
Christopher Poile
faa1898410 version bump for custom-attributes-plugin (#11880) 2019-08-14 15:04:55 -07:00
Jesse Hallam
9b61506c7d fix tmpfs usage (#11873)
We use tmpfs for CI builds to speed things up, but this is unsuitable for local development. Also, don't use `--no-ansi` in the `Makefile` to allow colours to show up.
2019-08-14 10:33:49 -04:00
Christopher Speller
a4091cd363 Updating prepackaged jira and adding antivirus. (#11838) 2019-08-09 13:32:37 -07:00
Martin Kraft
9ea0a60d88 Includes 'i18n-extract' in 'make help' output. (#11841) 2019-08-09 07:22:33 -07:00
Carlos Tadeu Panato Junior
c927fb9d50 add docker-compose for ci (#11795)
* add docker-compose for ci

* docker-compose logs does not have the option to set the dc file

* leverage docker-compose extends

This moves the developer `docker-compose.yml` to the root, extending the `build/docker-compose.yml` and overriding the `container_name` to preserve compatibility with the older, non-docker-compose setup.

Note that this required downgrading to docker-compose 2.4's file format (still supported by the newer tooling) due to the long and frustrating converstaion at https://github.com/moby/moby/issues/31101.

* remove -f docker-compose-ci.yml references
2019-08-06 08:46:53 +02:00
Jesse Hallam
e33bdc94f1 Tweak docker compose setup (#11785)
* fix stray dockerhost mention

* fix stray whitespace

* fix missing mattermost-redix cleanup in clean-old-docker

* absolute path to docker-compose, plus simpler ldap initialization

* allow ldapadd to fail on CI
2019-08-02 18:46:32 -03:00
Carlos Tadeu Panato Junior
f02f83a7df update sampledata users passwords (#11769)
* update sampledata users passwords

* update makefile
2019-08-02 19:42:25 +02:00
scott lee davis
2fa63b10ec MM 7971 dockerhost -> localhost && docker -> docker-compose (#10872)
* replace dockerhost with localhost

* remove uneeded setup-max build step (no more dockerhost)

* changes as recommended by @cpanato

* make clean-docker with docker-compose

* added ports to docker-compose.yml (needed for osx).   ignore error for ldapadd (when already exists)

* add clean-old-docker to legacy.mk

* docker-compose stop instead of down for `make stop-docker`
2019-08-02 11:53:00 -03:00
Jesús Espino
e4582905ea Time Layer for measure the Store methods calls time (#11609)
* Time Layer for measure the Store methods calls time

* Fixing build

* Fixing a formating problem

* Fixing tests

* generating store mocks

* Fixing build

* Updating generated timer layer

* Updating timer layer to the last store interface

* Updating timer layer

* Generating time layer
2019-08-01 22:10:58 +02:00
Jesse Hallam
4beb1226c8 revert 0e534c8, rewriting plugin tests to use actual pugins (#11713)
Revert https://mattermost.atlassian.net/browse/MM-14559. The tests were refactored, but all the hooks were be run as:

    _, ret := hooks.MessageWillBePosted(nil, nil)

and the plugins were panicking, but then nothing was actually failing because this hook doesn't support returning a "proper" error. Good news is that the old tests are still passing, so nothing has regressed in the toolkit, but thinking we should revisit this holistically instead of trying to fix in place.
2019-07-29 10:07:00 -03:00
Ali Farooq
f6480d1ac6 MM-16935 - Flaky test: Elastic Search IndexChannel Error (#11709) 2019-07-26 18:53:12 -04:00
Christopher Speller
1d419ff067 Bumping pre-packaged plugin versions. (#11651) 2019-07-19 07:33:58 -07:00
Harrison Healey
2bbfb1026d MM-16825 Update NPS plugin to 1.0.3 (#11664) 2019-07-19 08:55:40 +02:00
Harrison Healey
d4727ec649 Update NPS plugin to v1.0.2 (#11648) 2019-07-17 10:00:31 -07:00
Eli Yukelzon
f32679393b Added debug-server-headless to Makefile (#11625) 2019-07-17 14:36:58 +03:00
Max Vovshin
5015550f23 GH-11530 - Go major and minor version validation. (#11531)
* Added - golang version validation.

* Updated error message to include the minor version that is supported.

* Fixed issue with variable.

* Renamed variable.

* Added - golang version validation.

Added validation for major and minor versions of go.

* Fixed the way the validation is performed.

* Changed function declaration (define validate_go_version) to a target (validate_go_version).

* remove unneeded call to validate_go_version
2019-07-16 09:08:31 -04:00
Harrison Healey
673ed02a0d MM-16543 Fix Elasticsearch only returning one page of results (#11528)
* MM-16543 Add mocking for einterfaces packages

* MM-16543 Fix Elasticsearch only returning one page of results

* Remove license checks for einterface mocks
2019-07-08 08:32:29 -07:00
Claudio Costa
d844c52f06 MM-12389 Update segment library to v3 (#11472)
* Update analytics-go dependency

* Migrate from segment library v2 to v3

* Reinclude gorilla/handlers module

* Fix missing module

* Remove reference to outdated analytics module
2019-07-04 12:26:41 -07:00
Harrison Healey
0b89aa2472 MM-16682 Update NPS plugin to 1.0.1 (#11499) 2019-07-03 09:16:57 -04:00
Luke P
d0906a0c85 [MM-16517] Migrate "Status.Get" to Sync by default (#11367)
* Test

* Revert "Test"

This reverts commit 2bbf335ee9.

* Fixed typo in Makefile, line 564: 'persistent' misspelled

* Fixed return of status_store.Get to return model.Status and model.AppError, removed connections to result var in same method, generated new mocks and fixed tests.

* Fixed status_store.go under /sqlstore and /storetest in addition to removing personal comments

* SQL Indentation fix for consistency

* Revert merge change to store.go for SaveOrUpdate to avoid error introduced by merge

* Changed StoreChannel back to *model.Apperror for SaveOrUpdate in store.go, fixed resulting error in storetest/status_store.go so it did not have conflicting types. Fixed spelling errors in same file

* Test for status, err changed according to recommendation upon second look

* Changed status variable on line 77 to blank identifier to stop it from shadowing line 24 declaration

* It appears last statement in test was using 'status' variable where status is model.STATUS_ONLINE instead of model.STATUS_OFFLINE like status3, making comparison always be 'online != offline', which is always true, proceeding into if statement, guaranteeing test failure

* Build fails consistently when line 75 has 'status' in if statement due to shadowing issue due to existing declaration Jenkins complains about in line 24. If this fails then new variable will be necessary

* Renamed parameter to avoid overshadowing issue

* Undid code addition mistake in storetest/status_store.go and updated line 29 accordingly to account for multiple values.

* Remove status3 as used in line 71 in status_store.go.

* Undid change in storetest/status_store.go on line 67 which checked for wrong thing
2019-07-01 07:44:26 -04:00
Bob Lubecker
3993cac4ed MM-16264 - add cypress-test-data command to make file (#11130)
* add cypress-test-data command to make file

* apply changes to the standard test-data command
2019-06-25 07:06:44 -05:00
Hanzei
c05399ba9c Run go get commands explicitly without modules (#11290) 2019-06-20 13:09:05 -03:00
Lev
544055bdb3 Bumped Jira to 2.0.6 (#11191) 2019-06-14 12:12:10 -07:00
Lev
e0197ebddf Bumped Jira to 2.0.5 (#11184) 2019-06-14 08:29:03 -07:00
Lev
e0d084ab7a Bumped Jira to 2.0.4 (#11180)
Ignoring the irrelevant test failure
2019-06-13 17:10:54 -07:00
Harrison Healey
c78b769c2e MM-16277 Update NPS plugin to v1.0.0 (#11147) 2019-06-13 14:17:22 +02:00
Lev
2f7ef70d0f Bumped Jira to 2.0.3 (#11136) 2019-06-12 12:44:06 -07:00
Lev
03e5525fa6 Bumped Jira to 2.0.2 (#11131) 2019-06-11 15:59:52 -07:00
Christopher Speller
41774b671a Bump prepackaged github version to 0.10.2 (#11099) 2019-06-10 13:59:32 -07:00
Lev
c4609bfe38 Updated prepackaged Jira plugin version to 2.0.1 (#11075) 2019-06-07 10:18:23 -07:00
Christopher Poile
7f0911cf3e zoom v1.0.6 -> v1.0.7 (#11074) 2019-06-07 12:01:20 -04:00
Christopher Speller
0b62661ab0 Bump prepackaged github version to 0.10.1 (#11076) 2019-06-07 08:58:48 -07:00
Harrison Healey
f91dc57b4c Update NPS plugin to 1.0.0-rc2 (#11073) 2019-06-07 10:22:01 -04:00
Eli Yukelzon
6a42ad2af5 [MM-14400] Programmatically generate default.json (#10551)
* create/update config.json using go generate

* added default config generator
added config-reset to Jenkins and make package, updated defaults to consider 'isNew' flag

* corrections after code review

* fixed Config.isValid to handle empty encryption keys

* fixed Config.isValid to handle empty encryption keys

* fixed Config.isValid to handle empty encryption keys

* isUpdate now only checks for nil

* Addressed review comments, added unit testing for default config generator

* err shadowing

* license

* provide output file for config generator via ENV variable, since go generate doesn't support arguments and we need two output paths (config-reset and package)

* cleanup

* proper defaults for PushNotificationServer and SendPushNotifications

* corrected generating defaults for TrustedProxyIPHeader to be consistent with default.json in master

* Check for empty SiteURL as well as nil

* corrected SiteURL settings and checking

* crazy typos fixed

* corrected tests to newly expected values

* relaxed the checks

* fixed formatting
2019-06-06 13:57:01 -04:00
Carlos Tadeu Panato Junior
25333ac480 [MM-13745] Add mattermost-plugin-nps to prepackaged (#10483)
* add mattermost-plugin-nps to prepackaged

* Update NPS plugin version to v1.0.0-rc1
2019-06-03 15:39:44 -07:00
Christopher Poile
3236a40e14 MM-15817 Add custom-attributes as a bundled plugin (#11041) 2019-06-03 15:37:22 -07:00
Christopher Speller
eee26a7dd3 Add github to prepackaged plugins. (#11042) 2019-06-03 15:27:39 -07:00
Christopher Speller
85bd47a1d0 Add jirav2 to prepackaged plugins. (#11044) 2019-06-03 15:02:24 -07:00
Christopher Poile
1f397732dd Add welcomebot and aws-SNS to prepackaged plugins (#11048) 2019-06-03 14:10:08 -07:00
Lev
9b27558611 MM-15819 Add Autolink as a prepackaged plugin (#11040)
* Addink Autolink as a prepackaged plugin

* Fix packaging script.
2019-06-03 09:47:38 -07:00
Christopher Speller
118cd02613 MM-15882 Switching to new ci for prepackaged plugins and stripping alternate platform binaries. (#11025)
* Switching to new ci for prepackaged plugins and stripping alternate platform binaries.

* Feedback
2019-06-03 08:11:42 -07:00