Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
3433f483
Unverified
Commit
3433f483
authored
11 months ago
by
Diego Sampaio
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add UI tests with DB watchers disabled (#32397)
parent
a3ef33cf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/ci-test-e2e.yml
+6
-1
6 additions, 1 deletion
.github/workflows/ci-test-e2e.yml
.github/workflows/ci.yml
+31
-1
31 additions, 1 deletion
.github/workflows/ci.yml
docker-compose-ci.yml
+2
-0
2 additions, 0 deletions
docker-compose-ci.yml
with
39 additions
and
2 deletions
.github/workflows/ci-test-e2e.yml
+
6
−
1
View file @
3433f483
...
...
@@ -50,6 +50,10 @@ on:
type
:
required
:
true
type
:
string
db-watcher-disabled
:
default
:
'
false'
required
:
false
type
:
string
secrets
:
CR_USER
:
required
:
true
...
...
@@ -83,7 +87,7 @@ jobs:
mongodb-version
:
${{ fromJSON(inputs.mongodb-version) }}
shard
:
${{ fromJSON(inputs.shard) }}
name
:
MongoDB ${{ matrix.mongodb-version }} (${{ matrix.shard }}/${{ inputs.total-shard }})${{ matrix.mongodb-version == '6.0' && ' - Alpine' || '' }}
name
:
MongoDB ${{ matrix.mongodb-version
}}${{ inputs.db-watcher-disabled == 'true' && ' [no watchers]' || ''
}} (${{ matrix.shard }}/${{ inputs.total-shard }})${{ matrix.mongodb-version == '6.0' && ' - Alpine' || '' }}
steps
:
-
name
:
Login to GitHub Container Registry
...
...
@@ -161,6 +165,7 @@ jobs:
TRANSPORTER
:
${{ inputs.transporter }}
COVERAGE_DIR
:
'
/tmp/coverage'
COVERAGE_REPORTER
:
'
lcov'
DISABLE_DB_WATCHERS
:
${{ inputs.db-watcher-disabled }}
run
:
|
docker compose -f docker-compose-ci.yml up -d
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/ci.yml
+
31
−
1
View file @
3433f483
...
...
@@ -389,10 +389,40 @@ jobs:
REPORTER_ROCKETCHAT_URL
:
${{ secrets.REPORTER_ROCKETCHAT_URL }}
CODECOV_TOKEN
:
${{ secrets.CODECOV_TOKEN }}
test-ui-ee-no-watcher
:
name
:
🔨 Test UI (EE)
needs
:
[
checks
,
build-gh-docker-coverage
,
release-versions
]
uses
:
./.github/workflows/ci-test-e2e.yml
with
:
type
:
ui
release
:
ee
transporter
:
'
nats://nats:4222'
enterprise-license
:
${{ needs.release-versions.outputs.enterprise-license }}
shard
:
'
[1,
2,
3,
4,
5]'
total-shard
:
5
mongodb-version
:
"
['6.0']"
node-version
:
${{ needs.release-versions.outputs.node-version }}
lowercase-repo
:
${{ needs.release-versions.outputs.lowercase-repo }}
rc-dockerfile
:
${{ needs.release-versions.outputs.rc-dockerfile }}
rc-docker-tag
:
${{ needs.release-versions.outputs.rc-docker-tag }}
rc-dockerfile-alpine
:
${{ needs.release-versions.outputs.rc-dockerfile-alpine }}
rc-docker-tag-alpine
:
${{ needs.release-versions.outputs.rc-docker-tag-alpine }}
gh-docker-tag
:
${{ needs.release-versions.outputs.gh-docker-tag }}
retries
:
${{ (github.event_name == 'release' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') && 2 || 0 }}
db-watcher-disabled
:
'
true'
secrets
:
CR_USER
:
${{ secrets.CR_USER }}
CR_PAT
:
${{ secrets.CR_PAT }}
QASE_API_TOKEN
:
${{ secrets.QASE_API_TOKEN }}
REPORTER_ROCKETCHAT_API_KEY
:
${{ secrets.REPORTER_ROCKETCHAT_API_KEY }}
REPORTER_ROCKETCHAT_URL
:
${{ secrets.REPORTER_ROCKETCHAT_URL }}
CODECOV_TOKEN
:
${{ secrets.CODECOV_TOKEN }}
tests-done
:
name
:
✅ Tests Done
runs-on
:
ubuntu-20.04
needs
:
[
checks
,
test-unit
,
test-api
,
test-ui
,
test-api-ee
,
test-ui-ee
]
needs
:
[
checks
,
test-unit
,
test-api
,
test-ui
,
test-api-ee
,
test-ui-ee
,
test-ui-ee-no-watcher
]
steps
:
-
name
:
Test finish aggregation
...
...
This diff is collapsed.
Click to expand it.
docker-compose-ci.yml
+
2
−
0
View file @
3433f483
...
...
@@ -19,6 +19,7 @@ services:
-
'
ROCKETCHAT_LICENSE=${ENTERPRISE_LICENSE}'
-
'
COVERAGE_DIR=${COVERAGE_DIR}'
-
'
COVERAGE_REPORTER=${COVERAGE_REPORTER}'
-
DISABLE_DB_WATCHERS=${DISABLE_DB_WATCHERS}
extra_hosts
:
-
'
host.docker.internal:host-gateway'
depends_on
:
...
...
@@ -115,6 +116,7 @@ services:
-
MONGO_URL=${MONGO_URL}
-
'
TRANSPORTER=${TRANSPORTER}'
-
MOLECULER_LOG_LEVEL=info
-
DISABLE_DB_WATCHERS=${DISABLE_DB_WATCHERS}
extra_hosts
:
-
'
host.docker.internal:host-gateway'
depends_on
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment