Граф коммитов

299 Коммитов

Автор SHA1 Сообщение Дата
Lev
a7c1514d8e Bumped Zoom plugin to v1.1.2 (#13008)
* Bumped Zoom plugin version to 1.1.0

* Bumped Zoom plugin version to 1.1.1

* Bumped Zoom plugin to v1.1.2
2019-11-06 13:25:52 -08:00
Rodrigo Villablanca Vásquez
a39f4f1064 Change the minor version of go to 1.13 (#13015)
* Changed go minor version 12 -> 13

* REQUIREDGOVERSION set to 1.13.0
2019-11-06 07:04:50 -08:00
Ben Schumacher
0b24c336b3 Fix golangci-lint target (#12985) 2019-10-31 15:53:40 -05:00
Ben Schumacher
bc2b8b85fb Fix golangci-lint target for non GOPATH installations (#12934)
* Fix golangci-lint target for non GOPATH installations

* Link to https://github.com/golangci/golangci-lint#install
2019-10-30 12:48:51 +01:00
Paulo Bittencourt
7d0d7c304e MM-17888 Check plugin Helpers minimum server version comments (#12663) 2019-10-30 08:34:29 +01:00
Agniva De Sarker
3be92856b5 MM-19172: Add golangci-lint to the CI pipeline (#12909)
To start off with, we are using the new-from-rev=HEAD~ option which just checks the current
commit. This allows us to quickly integrate golangci-lint and not spend time in fixing all the
outstanding issues.

Things pending:
- Slowly fix the existing issues. To test them, just uncomment the "new-from-rev: HEAD~" line
from .golangci.yml and have at it.
- There are a number of unused functions and methods which are only invoked from enterprise code.
We are ignoring them for now because removing them will stop enterprise build from working.

The correct solution here is to use a build tag to separate TE and EE code. As a long term goal,
we would want to use that build tag throughout the EE codebase and remove the TE_PACKAGES and
EE_PACKAGES variables in the Makefile and just use the build tag. That makes things a lot cleaner
and avoids the need to spawn a "go list" every time to get the correct list of packages.
2019-10-26 09:12:07 +02:00
Agniva De Sarker
ee1f458bb1 Fix CI config (#12771)
* Fix CI config

- -mod=vendor flag was not being passed during the build stage, forcing
it to download everything again.
- Optimize the git clone of webapp with --depth=1 and use GIT_SSH_COMMAND to clone.
- Add $(GOFLAGS) to some other places which got missed out.

* Remove GOFLAGS from go list command

It does not work for Go 1.12. Need to fix later.
2019-10-17 18:38:21 +02:00
Lev
7239f8da60 Bumped Jira plugin version to 2.2.2 (#12770)
* Bumped the Jira plugin to v2.2.0

* Bumped Jira plugin version to 2.2.1

* Bumped Jira plugin version to 2.2.2

* Bumped Jira plugin version to v2.2.2
2019-10-14 20:36:56 -07:00
Lev
8dff860472 Bumped GitLab plugin version to 1.0.1 (#12406) 2019-10-11 06:09:38 -07:00
Lev
e095746987 Bumped Jira plugin version to 2.2.1 (#12689)
* Bumped the Jira plugin to v2.2.0

* Bumped Jira plugin version to 2.2.1
2019-10-08 16:34:00 -07:00
Lev
293d4c762e Bumped GitHub plugin to 0.11.0 (#12613) 2019-10-04 07:46:37 -07:00
Lev
54c4bef0d9 Bumped Zoom plugin version to 1.1.1 (#12403)
* Bumped Zoom plugin version to 1.1.0

* Bumped Zoom plugin version to 1.1.1
2019-10-03 10:22:30 -07:00
Lev
0186fdf9e7 Bumped Autolink plugin version to 1.1.1 (#12404) 2019-10-02 15:34:21 -07:00
Christopher Poile
f9025818b6 redirect stderr to stdout (#12516) 2019-10-02 19:23:25 +02:00
Lev
053ce34605 Bumped Welcome bot plugin version to 1.1.1 (#12407) 2019-10-02 10:09:22 -07:00
Lev
cc82cc990e Bumped Custom Attributes plugin version to 1.0.2 (#12405) 2019-10-02 09:35:01 -07:00
Lev
838f1de9e4 Bumped the Jira plugin to v2.2.0 (#12402) 2019-10-01 13:43:46 -07:00
Jesús Espino
89b7b2d99b Adding MM_NO_DOCKER env variable to Makefile (#12384)
* Adding MM_NO_DOCKER env variable to Makefile

* Making it consisten tiwh the previous IS_CI value
2019-09-30 20:50:56 +02:00
Christopher Speller
7966397f1f Defaulting to using go modules vendored (#12040) 2019-09-24 22:01:53 +02:00
Paulo Bittencourt
5b79fc4110 [MM-17889] Implement validation of plugin API version comments (#11941) 2019-09-17 08:03:28 +02:00
Lev
4c4fbdc652 Bumped Jira plugin to 2.1.3 (#12185) 2019-09-13 06:48:32 -07:00
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 2bbf335ee93ae7cd1dfeea4c805efcafeec8dae5.

* 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