Commit graph

545 commits

Author SHA1 Message Date
Michael Telatynski
d86e897ba6
Rework dockerhub builds (#22026)
* WIP

* Attempt to wire up dockerhub building in GHA

* Fix issue with mime types

* Skip linux/arm, Cypress only installs on 64-bit

* Update dockerhub.yaml

* Update comment
2022-07-29 14:30:16 +01:00
Šimon Brandner
ee3b9c3310
Improve dead code detection (#22829) 2022-07-25 09:35:48 +00:00
Michael Telatynski
01f4bb8c78
Rename PostCSS files to .pcss (#9013)
* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Delint

* Rename new files too

* delint

* Fix bad comment placement
2022-07-15 14:53:23 +01:00
Šimon Brandner
e1d4817d54
Add a script to check for dead code (#22793) 2022-07-13 10:04:32 +02:00
Michael Telatynski
5630a7defe
Update matrix-analytics-events to @matrix-org/analytics-events (#22469)
* Update matrix-analytics-events to @matrix-org/analytics-events

* Update layered.sh
2022-06-07 20:08:38 +01:00
Michael Telatynski
8036985204
Update matrix-analytics-events to @matrix-org/analytics-events (#8778)
* Update matrix-analytics-events to @matrix-org/analytics-events

* Update install-deps.sh

* Update layered.sh

* Update BeaconMarker-test.tsx.snap

* Update BeaconStatus-test.tsx.snap
2022-06-07 20:08:36 +01:00
Robin
359e0e205f
Make Lao translation available (#22358) 2022-05-26 08:49:58 -04:00
Michael Telatynski
b3ef2c179a
Update weblateToCounterpart to be more resilient (#22247)
* Update i18n check CI to ignore RiotTranslateBot

* Update `weblateToCounterpart` to be more resilient
2022-05-17 17:44:30 +01:00
Michael Telatynski
6c87e294c4
Run CI in Github Actions (#22054)
* Tidy workflows

* Update get-version-from-git.sh

* Run tests in Actions

* Upload coverage to SonarCloud

* Run linters in Actions

* Run builds in Actions, consolidating with sentry uploader

* Update sonar-project.properties

* chmod +x

* Iterate

* Use new env vars

* Delete yarn-sub.js

* Use re-usable sonarqube action

* Add README badges

* Match reality
2022-05-16 16:23:44 +02:00
Michael Telatynski
cda31136b9
Tweak sonar-project.properties (#8498) 2022-05-04 15:29:34 -04:00
Michael Telatynski
92f440d9de
Consolidate deployment management into more maintained action (#8430) 2022-04-29 11:07:42 +01:00
Travis Ralston
a6564d9ab9 Step 14: Remove reskindex 2022-03-28 15:30:30 -06:00
Travis Ralston
9c23f6c476 Step 14: Remove reskindex 2022-03-28 15:26:22 -06:00
Travis Ralston
7aeb2c3cde Step 10.4: Fix end-to-end test branch matching 2022-03-28 14:33:28 -06:00
Travis Ralston
a987ead7d2 Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
David Baker
1eb67047c9
Add some doc to the github actions / CI scripts (#8034)
* Add some doc to the githuib actions / CI scripts

Type: task

* alalytics-events is more name matching
2022-03-11 13:00:56 +00:00
Robin
8ec86eb7d5
Remove Lojban translation (#21302)
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-04 14:17:19 +00:00
Kerry
ebb1feee50
Basic script to create react component with test and style files (#7757)
* basically working script

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add test template

* add skinned-sdk import to test temp

* remove extra import

Signed-off-by: Kerry Archibald <kerrya@element.io>

* comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 10:33:21 +01:00
Michael Telatynski
8dd0722e04
Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
Travis Ralston
61a0be7d46
Render events as extensible events (behind labs) (#7462)
* Render events as extensible events (behind labs)

* Include the SDK

* Appease linter

* Update for changed property name

* Fix formatting error

* Fix branch matching for build steps

* Update SDK

* Update scripts/fetchdep.sh

Co-authored-by: Andy Balaam <andyb@element.io>

Co-authored-by: Andy Balaam <andyb@element.io>
2022-01-13 17:03:37 +00:00
Michael Telatynski
d7813c09d9
Update default Jitsi URLs to meet.element.io (#20487) 2022-01-11 16:15:17 +00:00
J. Ryan Stinnett
6c1fc8e903
Disable Git interactive auth when fetching deps (#20484)
This is important for branch testing, especially via HTTPS.
2022-01-11 12:48:49 +00:00
Travis Ralston
2617b424ce
Fix git protocol usage (#20464)
Prevents this:
```
+ git clone git://github.com/matrix-org/matrix-js-sdk.git matrix-js-sdk --branch develop --depth 1
Cloning into 'matrix-js-sdk'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
```
2022-01-11 09:06:18 +00:00
Ben Parsons
a90cbe9476
Include Vietnamese language (#20029)
* Include Vietnamese language

https://translate.element.io/languages/vi/element-web/ has been professionally translated by an Element customer

* Vietnamese -> "Tiếng Việt" ("Vietnamese Language")
2021-12-14 10:16:24 +00:00
James Salter
b0abbfacd4
Fix Docker build versioning (#20077)
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
2021-12-07 15:11:01 +11:00
James Salter
d4813f7a1a
Convert end-to-end tests to Typescript (#7206) 2021-12-06 09:59:06 +11:00
Linerly
1a403a37f9
Add support for the Indonesian language (#20032)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-03 12:40:56 +00:00
Travis Ralston
c9619bfe48
Fix documentation to make yarn test work out of the box (mk II) (#7075)
* Fix documentation to make `yarn test` work out of the box

Before, invoking `yarn test` croaked on a missing src/component-index.js
file. In another part of the README, the missing instruction to generate
this file was found.

* Fix CI: Unauthenticated git protocol on port 9418 is no longer supported

GitHub is deprecating the service which answered unauthenticated git
protocol requests. Either it happened already, or they are running
brownouts.

* This is where I meant to leave that comment

Co-authored-by: Andreas Motl <andreas.motl@panodata.org>
2021-11-02 20:22:24 +00:00
James Salter
f550d63198
Pass our VERSION to sentry plugin's release arg via env (#19474)
Use our existing VERSION, deduced by the packaging script, as the release for sentry sourcemaps.

This will be undefined for dev builds.
2021-10-22 15:06:14 +01:00
David Baker
47fd11050f Switch type check to GitHub Actions
and add (working) type check for release mode js-sdk types
2021-09-08 11:43:46 +01:00
Travis Ralston
e3cb55ce82
Update scripts/fetchdep.sh 2021-09-01 14:43:37 -06:00
Šimon Brandner
5b65528038
Make GH actions clone from the correct fork and cleanup
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-29 17:37:11 +02:00
David Baker
a2f581a7ef Add CI script to switch the js-sdk into 'release mode'
So we can check the types still work against a released js-sdk
2021-07-15 13:53:41 +01:00
Germain Souquet
5fb7dbee3e Do not generate a lockfile when running in CI 2021-07-07 16:11:47 +02:00
Germain Souquet
6e15d0f5e8 Do not generate a lockfile when running in CI 2021-07-07 16:10:40 +02:00
David Baker
ee9be5438e eslint --fix 2021-07-01 20:43:05 +01:00
Germain Souquet
b492072e76 add required dependency in Docker image for puppeteer 2021-06-25 15:01:28 +01:00
Germain Souquet
b092686453 improve comment grammar 2021-06-22 16:14:01 +01:00
Germain Souquet
fca2feaae8 make github env variable check first as it is new home for ci 2021-06-22 16:09:33 +01:00
Germain Souquet
c42f0fd2e4 split GITHUB_REPOSITORY rather than using GITHUB_ACTOR 2021-06-22 14:17:11 +01:00
Germain Souquet
660f3900f8 Change if statement syntax to use positive expressions 2021-06-22 14:11:41 +01:00
Germain
a7daf558bb
Use proper capitalisation for Buildkite
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-06-22 13:03:55 +01:00
Germain Souquet
8090d2b583 Fix branch matching for BuildKite 2021-06-22 09:31:15 +01:00
Germain Souquet
ca5f8f97bb Branch matching support for forked repository on GitHub actions 2021-06-21 16:18:13 +01:00
Germain Souquet
2d9e97a3e1 Fix branch matching to work with GitHub Actions and BuildKite 2021-06-21 09:47:46 +01:00
Michael Telatynski
6c64f564e4 Naive attempt at improving our end-to-end tests in Github Actions 2021-06-21 09:14:44 +01:00
Michael Telatynski
4ff25c5978
Add jq to e2e tests Dockerfile 2021-06-18 19:16:39 +01:00
Robin Townsend
77476451bd Fix Olm asm.js support
Signed-off-by: Robin Townsend <robin@robin.town>
2021-05-31 12:29:30 -04:00
Germain Souquet
4123406785 Move i18n utils to its own module 2021-04-26 16:55:12 +01:00
Germain Souquet
86c61cab33 Move i18n utils to its own module 2021-04-26 16:52:11 +01:00
J. Ryan Stinnett
14c23f1387 Remove old -d argument when packaging on CI
This `-d` argument was removed from `package.sh` ages ago
(ec66069e96), but we seem to have missed removing
it here.
2021-04-19 15:45:16 +01:00
Šimon Brandner
a9853c4f8f
Clone author's deps fork for Netlify previews
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-08 19:09:00 +02:00
J. Ryan Stinnett
b2d4639ec9 Use fsync in reskindex to ensure file is written to disk
This should (hopefully) resolve occasional errors where the rename step would
fail because the temporary file did not exist. In addition, this also exits with
an error code if something goes wrong so we notice it early, rather than having
to scroll through pages of logs at release time.
2021-03-11 13:40:11 +00:00
J. Ryan Stinnett
5b2f915ee9 Move to newer base image for end-to-end tests
This updates to Node 14 (current LTS) as well as moving from Debian Stretch to
Buster for the base OS. The Debian upgrade brings along a newer Python 3.8,
which is actively supported.

Fixes https://github.com/vector-im/element-web/issues/16272
2021-01-25 12:32:37 +00:00
J. Ryan Stinnett
016140670b Fix let binding in reskindex.js 2021-01-19 17:58:17 +00:00
J. Ryan Stinnett
4e5f25206a Ensure component index has been written before renaming
This ensures we correctly wait for `component-index.js.tmp` to be written to
disk before trying to rename into place. This fixes an issue where stray temp
files were being strewn about the repos after renaming failures.
2021-01-19 14:45:03 +00:00
J. Ryan Stinnett
0e137bd0f6 Fix code style 2021-01-19 14:42:10 +00:00
J. Ryan Stinnett
a22049a679 Use const / let instead of var 2021-01-19 14:38:36 +00:00
J. Ryan Stinnett
a72ab0da04
Merge pull request #16210 from vector-im/jryans/add-langs-2021-01
Add Hebrew language
2021-01-19 11:24:55 +00:00
J. Ryan Stinnett
cdc97a220a Add Hebrew language 2021-01-19 11:16:56 +00:00
J. Ryan Stinnett
8c98921842 Fix develop Docker builds
An extra step is needed for develop Docker builds after recent build process
changes. This was regressed by
https://github.com/vector-im/element-web/pull/15999.

Fixes https://github.com/vector-im/element-web/issues/16119
2021-01-18 12:01:58 +00:00
J. Ryan Stinnett
48884c711b Cloned deps no longer need so much building 2020-12-18 15:32:56 +00:00
J. Ryan Stinnett
e90e51cc9b React SDK needs to build the component index 2020-12-18 15:13:09 +00:00
J. Ryan Stinnett
50427786f9 Cloned deps do not need any building now 2020-12-18 15:11:55 +00:00
J. Ryan Stinnett
19cfe44b16 Types from dependencies are now built explicitly 2020-12-18 11:59:30 +00:00
J. Ryan Stinnett
3d3490c6d7 For cloned deps, we only need to build types 2020-12-18 11:59:30 +00:00
J. Ryan Stinnett
c63c8540f1 Remove old app test script path
Now that https://github.com/matrix-org/pipelines/pull/112 has merged, we no
longer need to support this old path for launching app-level tests.
2020-12-04 11:05:05 +00:00
David Baker
c853085e29 Add support for Netlify to fetchdep script
and remove support for Jenkins
2020-12-03 18:40:33 +00:00
J. Ryan Stinnett
883d5d96a7 Nest other layers inside on automation
This changes the nesting style because some CI / CD systems do not allow moving
to a directory above the checkout for the primary repo (`react-sdk` in this
case).

Part of https://github.com/vector-im/element-web/issues/12624
2020-12-03 16:21:40 +00:00
J. Ryan Stinnett
a6e69db8f5 Rebrand E2E test Docker image 2020-12-03 14:56:24 +00:00
J. Ryan Stinnett
cdc57cf1f5 Add temporary symlink for pipeline 2020-12-03 13:58:25 +00:00
J. Ryan Stinnett
1fda735222 Rebrand various CI scripts and modules
This replaces Riot with Element in various CI scripts, modules, parameters, etc.
This _should_ be the last major rebranding pass (hopefully).

Fixes https://github.com/vector-im/element-web/issues/14894
2020-12-03 13:56:27 +00:00
J. Ryan Stinnett
f1e89bf833 Replace various instances of Riot with Element 2020-11-25 17:01:19 +00:00
J. Ryan Stinnett
6583064cb4 A few additional packaging changes
This renames a few more packaging bits to match the new brand.

Fixes https://github.com/vector-im/element-web/issues/14896
2020-11-24 15:38:48 +00:00
J. Ryan Stinnett
5b86aa3a7a Merge remote-tracking branch 'origin/develop' into jryans/rebrand-packaged-artifact 2020-11-23 17:43:19 +00:00
Travis Ralston
44bf49d414
Update scripts/build-jitsi.js 2020-10-16 13:15:08 -06:00
Sebastian Denz
7f4f9b2cf1 Use HTTPS_PROXY environment variable for downloading external_api.min.js if set 2020-10-16 14:48:28 +02:00
Michael Telatynski
cfee4c925a Revert "Attempt to fix tests some more"
This reverts commit c76a5f2c

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:05:07 +01:00
Qt Resynth
1d06496bd1
Update Riot -> Element in redeploy.py 2020-09-30 12:00:52 +00:00
J. Ryan Stinnett
c9733c568e
Merge pull request #15333 from resynth1943/patch-11
Update Riot -> Element in issues-burndown.pl
2020-09-30 12:26:56 +01:00
Qt Resynth
92382e11ef
Update Riot -> Element in redeploy.py 2020-09-30 11:09:47 +00:00
Qt Resynth
a3eaa9d7fa
Update Riot -> Element in issues-burndown.pl 2020-09-30 11:08:55 +00:00
Michael Telatynski
c76a5f2c52 Attempt to fix tests some more 2020-09-15 13:19:47 +01:00
J. Ryan Stinnett
743c869055
Merge pull request #15137 from vector-im/jryans/remove-travis-refs
Remove references to Travis CI
2020-09-11 09:39:21 +01:00
J. Ryan Stinnett
7262b372b3 Remove references to Travis CI
Also cleans up a Riot reference as well

Part of https://github.com/vector-im/element-web/issues/15098
2020-09-10 10:16:29 +01:00
J. Ryan Stinnett
6853cabca2 Enable Estonian in language menu
Fixes https://github.com/vector-im/element-web/issues/15135
2020-09-10 10:03:13 +01:00
Selyan Slimane Amiri
c1faa54102
Make kabyle translation available 2020-08-22 21:16:55 +01:00
J. Ryan Stinnett
ce226ab534 Replace Riot with Element in docs and comments
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.

Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:33:36 +01:00
thomcatdotrocks
02ca5011a3
Updating package.sh
This should correct the tarball structure from `riot-$version` to `element-$version`.
2020-07-31 15:59:13 -05:00
Travis Ralston
fed20d46c5 Replace i18n generation script with something matching our project
We've been relying on flow being close enough to TypeScript for so long that it is starting to run into issues. Here we switch to babel's parser given we already use babel in the project.

Babel's parser is also *slightly* faster, allowing us to generate strings 0.1s faster.
2020-07-31 13:33:33 -06:00
Robin Townsend
5393f875ce Make Lojban translation available
Signed-off-by: Robin Townsend <robintown@tcakoi.dev>
2020-07-22 15:28:59 +00:00
Resynth
050b7fe4df Update scripts/docker-link-repos.sh
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2020-07-17 13:04:55 +01:00
Resynth
79f70e00d0 Update scripts/ci_package.sh
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2020-07-17 13:04:55 +01:00
Resynth
2f7b43dcfa Update docker-link-repos.sh 2020-07-17 13:04:03 +01:00
Resynth
2c83458f35 Update ci_package.sh 2020-07-17 13:04:03 +01:00
J. Ryan Stinnett
40f40251f1 Remove Electron packaging scripts
These tasks are handled by riot-desktop now.
2020-05-15 17:56:23 +01:00
Zoe
4110e2dfa3 Move codebase into riot-web 2020-04-30 13:58:17 +01:00
Zoe
3e77418fd7 Turn on source mapping, copy decoder-ring over to bundle 2020-04-23 17:55:21 +01:00
Travis Ralston
3f14b31e47 Add more words to explain windows being awful 2020-04-20 09:46:52 -06:00
Travis Ralston
6d46ef548e Enable tests again to catch failures 2020-04-16 16:26:29 -06:00