-
Notifications
You must be signed in to change notification settings - Fork 91
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
[MM-62] Update plugin with respect to phase 1 upgrades #237
Conversation
Feedback. Still did not get it working, but it's already a big improvement on what is there. See also #206 The first set of errors could be solved by updating the first line of Dockerfile to I got this error: npm WARN tarball tarball data for redux-offline@git+ssh://[email protected]/enahum/redux-offline.git#885024de96b6ec73650c340c8928066585c413df (sha512-srmJ1vWm8ZQTYflZCf7oUs3WBX83GyCIzsFUpwxUg2wcDHngSHjjShRTCgmkciPkVmM4aJ33i9baYS9jRC+zLA==) seems to be corrupted.
npm ERR! code EINTEGRITY
npm ERR! sha512-srmJ1vWm8ZQTYflZCf7oUs3WBX83GyCIzsFUpwxUg2wcDHngSHjjShRTCgmkciPkVmM4aJ33i9baYS9jRC+zLA== integrity checksum failed when using sha512: wanted sha512-srmJ1vWm8ZQTYflZCf7oUs3WBX83GyCIzsFUpwxUg2wcDHngSHjjShRTCgmkciPkVmM4aJ33i9baYS9jRC+zLA== but got sha512-SThdHzd9uoZ4Uo6I1X4fc1Q1aU5erk6TRZdRVdRtkHrIaYzVhcNqZYGg/euh+LVfiAWQIo6WPeKuGgrZVghBSw==. (49960 bytes) This could be solved by removing package-lock.json.
Needs to be solved in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codewise, LGTM.
Building needs Go 1.19 or higher, else it will stop on:
Also the lint-errors found with newer versions of
Even with that disabled, it fails on the existing tests of
|
When updating the Mattermost API to V6 (or higher), I get:
|
/update-branch |
For some reason the CI checks are not running for this PR. This should catch the failing webapp test. @ayusht2810 Can you please run the ci commands locally while we figure out the issues with CI? Or have you run them and are not seeing the issues pointed out above? @toninis Any thoughts on why CI may not be running here?
@VincentSC What were your steps for changing the dependency (update paths in source etc.)? This PR already updates the dependency to
@VincentSC Is your git environment set up to allow for using ssh with GitHub?
I'm not sure where that |
The Dockerfile is superhandy! It makes sure that an environment is as expected and triaging bugs is not caused by version-problems anywhere. So please don't remove!! We have already fixed the Dockerfile by using Ubuntu 23.4 and various other things. Problem is that Go and NPM have their own dependency-systems and this is causing conflicts. I prefer to replicate a working system, as I assume a non-documented command somewhere |
Then the project uses both and needs a good cleanup.
It is done via the docker-build. But this specific environment is indeed not set up for ssh, as I set up something temporary on a server here. Seemingly that is required and not documented? It's weird, as it does not need to be done this way, with https being available. Also, the redux-offline project is not updated in years! Neither upstream, but not as bad as the one at mattermost.
My life should not about a single project that defines how my environment should look like. Docker solves that. We have some improvements for just the docker-build, by the way. |
@VincentSC @mickmister I have fixed the build issues in the Docker file, and now we are able to create a build using the Docker file. Also, regarding the failing of webapp unit test cases, they are passing on my local. |
Does it still need ssh-access to Gitlab or will https suffice?
|
@VincentSC I haven't tested that part.
They were passing on my machine as well as within the Docker. |
Yes, it works! |
sudo docker build -t mattermost-plugin-jitsi-builder . | ||
sudo docker run --rm -it -v $(pwd):/src -w /src mattermost-plugin-jitsi-builder make "$@" No newline at end of file | ||
sudo docker run --rm -it -v $(pwd):/src -w /src mattermost-plugin-jitsi-builder make "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may make sense to have this in build/custom.mk
to make it into a make
command, like make build-docker
. 0/5
Merged! I'm happy about this progress, as it enables a lot! One small problem I just discovered: version is still 2.0.0. |
Summary
Updated plugin with respect to phase 1 upgrades
1.12
to1.19
build
folder to sync with starter templatenvmrc
file and updatepackage-lock.json
file.Ticket Link