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

Merge upstream changes up to 3bf896c973404261f4f7b25c25ea22adb1a85e7d #2517

Merged
merged 23 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9c8891b
Rewrite `AutosuggestTextarea` as Functional Component (#27618)
ClearlyClaire Oct 31, 2023
0e3401b
Improve Babel configuration and automatically load polyfills (#27333)
renchap Oct 31, 2023
b264318
Update strong_migrations to version 1.3.0 (#25991)
mjankowski Oct 31, 2023
3107a94
Silence deprecation warning about secrets/credentials with Devise pat…
mjankowski Oct 31, 2023
7ef56d6
Move json_ld context loaders to `config/initializers` (#27590)
mjankowski Oct 31, 2023
277e696
Use helpers to check environment in frontend (#27633)
renchap Oct 31, 2023
ac8e4ed
Fix inserting emojis from emoji picker fails with TypeError (#27647)
mgmn Nov 1, 2023
2aa28e0
Mark version 4.0 as no longer supported (#27627)
renchap Nov 1, 2023
0337df3
Fix posts from threads received out-of-order sometimes not being inse…
ClearlyClaire Nov 2, 2023
2d548e2
New Crowdin Translations (automated) (#27646)
github-actions[bot] Nov 3, 2023
5d9e71e
Archive uploaded CI assets into single file between build/test (#27668)
mjankowski Nov 3, 2023
9d799d4
Reduce CI job matrix job count (#27660)
mjankowski Nov 3, 2023
3bf2a72
Use Immutable `Record` for accounts in Redux state (#26559)
renchap Nov 3, 2023
6712bf8
Fixes website not loading for unlogged users (#27698)
renchap Nov 4, 2023
c0989b7
Fix incoming status creation date not being restricted to standard IS…
ClearlyClaire Nov 6, 2023
ef140da
Update dependency discard to v1.3.0 (#27720)
renovate[bot] Nov 6, 2023
afd1371
Update dependency rubocop to v1.57.2 (#27719)
renovate[bot] Nov 6, 2023
1416745
Update dependency faker to v3.2.2 (#27718)
renovate[bot] Nov 6, 2023
3bf896c
Disable Babel polyfill injection in dev (#27691)
renchap Nov 6, 2023
ddf3ad9
Merge commit '3bf896c973404261f4f7b25c25ea22adb1a85e7d' into glitch-s…
ClearlyClaire Dec 17, 2023
e22c3cd
[Glitch] Improve Babel configuration and automatically load polyfills
renchap Oct 31, 2023
bb4fa0c
[Glitch] Rewrite `AutosuggestTextarea` as Functional Component
ClearlyClaire Oct 31, 2023
cc265f7
[Glitch] Fix inserting emojis from emoji picker fails with TypeError
mgmn Nov 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Node.js
NODE_ENV=tests
# In test, compile the NodeJS code as if we are in production
NODE_ENV=production
# Federation
LOCAL_DOMAIN=cb6e6126.ngrok.io
LOCAL_HTTPS=true
21 changes: 11 additions & 10 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ jobs:
run: |-
./bin/rails assets:precompile

- name: Archive asset artifacts
run: |
tar --exclude={"*.br","*.gz"} -zcf artifacts.tar.gz public/assets public/packs*

- uses: actions/upload-artifact@v3
if: matrix.mode == 'test'
with:
path: |-
./public/assets
./public/packs-test
./artifacts.tar.gz
name: ${{ github.sha }}
retention-days: 0

Expand Down Expand Up @@ -102,7 +105,6 @@ jobs:
SAML_ENABLED: true
CAS_ENABLED: true
BUNDLE_WITH: 'pam_authentication test'
CI_JOBS: ${{ matrix.ci_job }}/4
GITHUB_RSPEC: ${{ matrix.ruby-version == '.ruby-version' && github.event.pull_request && 'true' }}

strategy:
Expand All @@ -112,19 +114,18 @@ jobs:
- '3.0'
- '3.1'
- '.ruby-version'
ci_job:
- 1
- 2
- 3
- 4
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
with:
path: './public'
path: './'
name: ${{ github.sha }}

- name: Expand archived asset artifacts
run: |
tar xvzf artifacts.tar.gz

- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
with:
Expand All @@ -134,7 +135,7 @@ jobs:
- name: Load database schema
run: './bin/rails db:create db:schema:load db:seed'

- run: bundle exec rake rspec_chunked
- run: bin/rspec

test-e2e:
name: End to End testing
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AllCops:
- 'node_modules/**/*'
- 'Vagrantfile'
- 'vendor/**/*'
- 'lib/json_ld/*' # Generated files
- 'config/initializers/json_ld*' # Generated files
- 'lib/mastodon/migration_helpers.rb' # Vendored from GitLab
- 'lib/templates/**/*'

Expand Down
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ gem 'simple-navigation', '~> 4.4'
gem 'simple_form', '~> 5.2'
gem 'sprockets-rails', '~> 3.4', require: 'sprockets/railtie'
gem 'stoplight', '~> 3.0.1'
gem 'strong_migrations', '~> 0.8'
gem 'strong_migrations', '1.3.0'
gem 'tty-prompt', '~> 0.23', require: false
gem 'twitter-text', '~> 3.1.0'
gem 'tzinfo-data', '~> 1.2023'
Expand All @@ -103,9 +103,6 @@ gem 'rdf-normalize', '~> 0.5'
gem 'private_address_check', '~> 0.5'

group :test do
# Used to split testing into chunks in CI
gem 'rspec_chunked', '~> 0.6'

# Adds RSpec Error/Warning annotations to GitHub PRs on the Files tab
gem 'rspec-github', '~> 2.4', require: false

Expand Down
15 changes: 6 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ GEM
devise (>= 4.0.0)
rpam2 (~> 4.0)
diff-lcs (1.5.0)
discard (1.2.1)
discard (1.3.0)
activerecord (>= 4.2, < 8)
docile (1.4.0)
domain_name (0.5.20190701)
Expand Down Expand Up @@ -265,7 +265,7 @@ GEM
tzinfo
excon (0.100.0)
fabrication (2.30.0)
faker (3.2.1)
faker (3.2.2)
i18n (>= 1.8.11, < 2)
faraday (1.10.3)
faraday-em_http (~> 1.0)
Expand Down Expand Up @@ -536,7 +536,7 @@ GEM
pundit (2.3.1)
activesupport (>= 3.0.0)
raabro (1.4.0)
racc (1.7.1)
racc (1.7.3)
rack (2.2.8)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
Expand Down Expand Up @@ -650,9 +650,7 @@ GEM
rspec-mocks (~> 3.0)
sidekiq (>= 5, < 8)
rspec-support (3.12.1)
rspec_chunked (0.6)
rubocop (1.57.1)
base64 (~> 0.1.1)
rubocop (1.57.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand Down Expand Up @@ -742,7 +740,7 @@ GEM
stoplight (3.0.2)
redlock (~> 1.0)
stringio (3.0.8)
strong_migrations (0.8.0)
strong_migrations (1.3.0)
activerecord (>= 5.2)
swd (1.3.0)
activesupport (>= 3)
Expand Down Expand Up @@ -921,7 +919,6 @@ DEPENDENCIES
rspec-github (~> 2.4)
rspec-rails (~> 6.0)
rspec-sidekiq (~> 4.0)
rspec_chunked (~> 0.6)
rubocop
rubocop-capybara
rubocop-performance
Expand All @@ -944,7 +941,7 @@ DEPENDENCIES
sprockets-rails (~> 3.4)
stackprof
stoplight (~> 3.0.1)
strong_migrations (~> 0.8)
strong_migrations (= 1.3.0)
test-prof
thor (~> 1.2)
tty-prompt (~> 0.23)
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ A "vulnerability in Mastodon" is a vulnerability in the code distributed through
| ------- | ---------------- |
| 4.2.x | Yes |
| 4.1.x | Yes |
| 4.0.x | Until 2023-10-31 |
| 4.0.x | No |
| 3.5.x | Until 2023-12-31 |
| < 3.5 | No |
Loading
Loading