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

Update mattermost-server to 7.2, improve circle-ci caching #354

Merged
merged 11 commits into from
Aug 22, 2022

Conversation

levb
Copy link
Contributor

@levb levb commented Aug 16, 2022

  • Updated the server dependency to v7.2
  • improved caching and build performance in circleci

@levb levb changed the base branch from master to lev-example-expand-notify August 16, 2022 22:23
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2022

Codecov Report

Merging #354 (ac6ae2e) into lev-example-expand-notify (49ab502) will not change coverage.
The diff coverage is n/a.

❗ Current head ac6ae2e differs from pull request most recent head 9caf384. Consider uploading reports for the commit 9caf384 to get more accurate results

@@                    Coverage Diff                     @@
##           lev-example-expand-notify     #354   +/-   ##
==========================================================
  Coverage                      21.23%   21.23%           
==========================================================
  Files                             81       81           
  Lines                           5190     5190           
==========================================================
  Hits                            1102     1102           
  Misses                          3974     3974           
  Partials                         114      114           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

…termost-plugin-apps into lev-update-to-7-2
@levb levb changed the title update mattermost-server to 7.2 Update mattermost-server to 7.2, improve circle-ci caching Aug 17, 2022
@levb levb added the 2: Dev Review Requires review by a core committer label Aug 17, 2022
@levb levb marked this pull request as ready for review August 17, 2022 16:08
save_cache:
key: go-mod-v4-{{ checksum "go.sum" }}
paths:
- "~/go/pkg/mod"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use $GOPATH instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The env variables do not appear to work ubiquitously, this seems an easy (and idiomatic?) reference in the cimg world.

@@ -39,79 +39,35 @@ commands:
- aws-s3/copy:
from: << parameters.filename >>
to: << parameters.bucket >>
arguments: '--acl public-read --cache-control no-cache'

install-golangci-lint:
Copy link
Member

Choose a reason for hiding this comment

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

Why is this no longer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because golangci is already installed? Or did I miss the point of that step?

paths:
- "~/go/pkg/mod"
- &restore_cypress_cache
restore_cache:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mickmister this is not working, see attached,
image
appears that package-lock.json is changed by the build, so the cache is saved for a different sha.

We should fix this - at the very least because we are continuously generating large caches, 0/5 we generate in master, refer to the cache by the commited package-lock.json sha

@levb levb added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Aug 22, 2022
@levb levb merged commit 8d98116 into lev-example-expand-notify Aug 22, 2022
@levb levb deleted the lev-update-to-7-2 branch August 22, 2022 17:16
levb added a commit that referenced this pull request Aug 29, 2022
* wip

* wip: goapp builds

* more wip

* wip

* fixed examples README port ref

* removed a couple accidental changes

* wip - switching to a different task

* use functional options for better readability of the app

* a few fixes

* notify command

* tests pass

* style + comments + minor

* Eliminated Context.ActingUserID altogether

* wip stash

* wip /info works again, with IDs only

* wip example-expand user action seems to work (happy)

* Fixed expand level none parsing

* moved/rewrote all REST API tests

* goapp, and use it in REST API tests

* Makefile adjustment

* space

* moved code around

* Update apps/goapp/bindable.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* PR feedback

* PR feedback: comment

* PR feedback: remove ServiceNow reference

* PR feedback: strings

* PR feedback: experimental

* fixed a test

* remamed invoke_call.go back to call.go to see the diff better

* make all works, moved a bunch of test stubs to restapitest

* ci to use go 1.18.2

* up golangci-lint to 1.46.1

* Updated OAuth2 REST tests

* add test for AppsMetadata returned by proxy

* bindings test

* passes rest test again

* more generic bindings test

* more bindings-related cleanup

* wip

* more bindings

* finished bindings test

* reenabled other tests

* beginning of notify test

* more refactoring

* touches

* more touches

* notify tests

* Update server/appservices/subscriptions.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* added test for SubjectUserLeftTeam

* notify all subjects, happy, no expand

* lint

* removed scratchpad lines

* PR feedback: typo

* Update server/proxy/invoke_oauth2.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Update server/proxy/service.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* test user_created with expand and all client combinations

* attempted to add test-rest-api to coverage

* Revert "attempted to add test-rest-api to coverage"

This reverts commit fcbcb4e.

* bot_joined_channel

* lint

* comments

* bot_left_channel + refactoring

* bot_joined/left_team

* lint

* go 1.18.3

* more ci go version

* updated mmserver from 6.6 to current

* more tests

* fixed E2E docker image back to 6.6

* fixed E2E docker image back to 6.6 once more

* lowered required server to 6.6 fot the E2E tests to pass

* restructuring tests/precision

* added bot_left_channel, more restructuring/fixes

* style

* saved a second off the test by using cached values for comparisons, where possible

* All tests pass

* type in cicrleci config

* Update server/httpin/service.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Update server/proxy/invoke_bindings.go

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* Update server/proxy/invoke_bindings.go

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* style

* fixed static and added a test

* comment

* Uninstall cleans out subscriptions

* removed old notfy tests

* added uninstall test

* Finished uninstall test

* lint

* i18n

* PR feedback and fixes

* PR feedback + TestRESTAPI/echo/email_expansion_is_controlled_by_server_settings

* renamed call.go -> invoke_call.go for consistency

* PR feedback: added comments

* fixed tests

* Examples: lifecycle, webhooks

* Example: OAuth2

* serverless example + small fixes for static

* fixed bindings test

* wip

* fixed the go.mod mess

* PR feedback: comments and strins

* set content-type json

* fixed the test app (#353)

* Update mattermost-server to 7.2, improve circle-ci caching (#354)

* fixed the test app

* Updated to server v7.2

* go mod tidy

* try release 7.1

* try 1

* try 2

* try 3

* try 4

* try 5

* try 6

* fixed embedded binding in test app (appID)

* test app update

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
levb added a commit that referenced this pull request Sep 29, 2022
* wip

* wip: goapp builds

* more wip

* wip

* fixed examples README port ref

* removed a couple accidental changes

* wip - switching to a different task

* use functional options for better readability of the app

* a few fixes

* notify command

* tests pass

* style + comments + minor

* Eliminated Context.ActingUserID altogether

* wip stash

* wip /info works again, with IDs only

* wip example-expand user action seems to work (happy)

* Fixed expand level none parsing

* moved/rewrote all REST API tests

* goapp, and use it in REST API tests

* Makefile adjustment

* space

* moved code around

* Update apps/goapp/bindable.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* PR feedback

* PR feedback: comment

* PR feedback: remove ServiceNow reference

* PR feedback: strings

* PR feedback: experimental

* fixed a test

* remamed invoke_call.go back to call.go to see the diff better

* make all works, moved a bunch of test stubs to restapitest

* ci to use go 1.18.2

* up golangci-lint to 1.46.1

* Updated OAuth2 REST tests

* add test for AppsMetadata returned by proxy

* bindings test

* passes rest test again

* more generic bindings test

* more bindings-related cleanup

* wip

* more bindings

* finished bindings test

* reenabled other tests

* beginning of notify test

* more refactoring

* touches

* more touches

* notify tests

* Update server/appservices/subscriptions.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* added test for SubjectUserLeftTeam

* notify all subjects, happy, no expand

* lint

* removed scratchpad lines

* PR feedback: typo

* Update server/proxy/invoke_oauth2.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Update server/proxy/service.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* test user_created with expand and all client combinations

* attempted to add test-rest-api to coverage

* Revert "attempted to add test-rest-api to coverage"

This reverts commit fcbcb4e.

* bot_joined_channel

* lint

* comments

* bot_left_channel + refactoring

* bot_joined/left_team

* lint

* go 1.18.3

* more ci go version

* updated mmserver from 6.6 to current

* more tests

* fixed E2E docker image back to 6.6

* fixed E2E docker image back to 6.6 once more

* lowered required server to 6.6 fot the E2E tests to pass

* restructuring tests/precision

* added bot_left_channel, more restructuring/fixes

* style

* saved a second off the test by using cached values for comparisons, where possible

* All tests pass

* type in cicrleci config

* Update server/httpin/service.go

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Update server/proxy/invoke_bindings.go

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* Update server/proxy/invoke_bindings.go

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* style

* fixed static and added a test

* comment

* Uninstall cleans out subscriptions

* removed old notfy tests

* added uninstall test

* Finished uninstall test

* lint

* i18n

* PR feedback and fixes

* PR feedback + TestRESTAPI/echo/email_expansion_is_controlled_by_server_settings

* renamed call.go -> invoke_call.go for consistency

* PR feedback: added comments

* fixed tests

* Examples: lifecycle, webhooks

* Example: OAuth2

* serverless example + small fixes for static

* fixed bindings test

* wip

* fixed the go.mod mess

* PR feedback: comments and strins

* set content-type json

* fixed the test app (#353)

* Update mattermost-server to 7.2, improve circle-ci caching (#354)

* fixed the test app

* Updated to server v7.2

* go mod tidy

* try release 7.1

* try 1

* try 2

* try 3

* try 4

* try 5

* try 6

* kv goapp example

* Added a REST API test for KV prefixes

* touches on kv example

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants