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

Drop database #510

Merged
merged 60 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
794309f
Merge branch 'fix-missing-xcframework-errors' into drop-database
mplorentz Apr 4, 2022
4441dd5
Merge branch 'release/1.1.0' into drop-database
mplorentz Apr 4, 2022
fe8ac6b
Added code to drop database on launch
mplorentz Apr 4, 2022
e091d99
Merge branch 'test-network-improvements' into drop-database
mplorentz Apr 6, 2022
0cd2aa2
Save database version to disk
mplorentz Apr 6, 2022
47f9365
Bump api-ios.go version
mplorentz Apr 7, 2022
b6f366e
Add Beta1MigrationView that is presented during migration
mplorentz Apr 7, 2022
01d58b3
Create Beta1MigrationCoordinator to handle migration logic & progress…
mplorentz Apr 7, 2022
b7677ed
Merge branch 'test-network-improvements' into drop-database
mplorentz Apr 12, 2022
daa1b44
Merge remote-tracking branch 'origin/master' into drop-database
mplorentz Apr 12, 2022
a01fc22
Merge remote-tracking branch 'origin/bump-version' into drop-database
mplorentz Apr 14, 2022
e21e972
Merge branch 'bump-version' into drop-database
mplorentz Apr 14, 2022
d5cd3ca
Fix tests
mplorentz Apr 14, 2022
8b987ef
Added a basic test for the migration
mplorentz Apr 15, 2022
a9b3f55
Merge branch 'main' of github.com:planetary-social/planetary-ios
mplorentz Apr 18, 2022
1071ced
New translations Generated.strings (French)
martindsq Apr 18, 2022
29779f6
New translations Generated.strings (Ukrainian)
martindsq Apr 18, 2022
1ac11ca
New translations Generated.strings (Maori)
martindsq Apr 18, 2022
785a5f5
New translations Generated.strings (Spanish, Uruguay)
martindsq Apr 18, 2022
8f46629
New translations Generated.strings (Portuguese, Brazilian)
martindsq Apr 18, 2022
19f23d4
New translations Generated.strings (English)
martindsq Apr 18, 2022
99f1199
New translations Generated.strings (Chinese Traditional)
martindsq Apr 18, 2022
696e7fd
New translations Generated.strings (Chinese Simplified)
martindsq Apr 18, 2022
bf43eea
New translations Generated.strings (Russian)
martindsq Apr 18, 2022
d2f9279
New translations Generated.strings (Spanish)
martindsq Apr 18, 2022
5cec3bb
New translations Generated.strings (Portuguese)
martindsq Apr 18, 2022
f89791d
New translations Generated.strings (Polish)
martindsq Apr 18, 2022
6efa45e
New translations Generated.strings (Dutch)
martindsq Apr 18, 2022
815ab60
New translations Generated.strings (Italian)
martindsq Apr 18, 2022
15c6a5c
New translations Generated.strings (German)
martindsq Apr 18, 2022
718afd8
New translations Generated.strings (Danish)
martindsq Apr 18, 2022
2c1e7ac
New translations Generated.strings (Czech)
martindsq Apr 18, 2022
8286fe8
Merge pull request #504 from planetary-social/l10n_main
mplorentz Apr 18, 2022
2c1d54f
Fix login race condition
mplorentz Apr 18, 2022
18dd5d0
Add tests for GoBot.dropDatabase()
mplorentz Apr 19, 2022
449a763
Fix incremental compilation taking a long time
mplorentz Apr 19, 2022
5bd9b27
Add more tests exhibiting ssbBotStop() hang
mplorentz Apr 20, 2022
49681f0
Refine testLogoutWithDirectoryMissing() to be simpler
mplorentz Apr 20, 2022
ec0c944
Wrote integration tests for the migration
mplorentz Apr 20, 2022
18815c3
Merge branch 'drop-database' into migration_tests
mplorentz Apr 20, 2022
6e381c4
Merge remote-tracking branch 'origin/bump-version' into migration_tests
mplorentz Apr 20, 2022
edce687
Pre-codacy cleanup
mplorentz Apr 21, 2022
8695142
Fix MultiserverAddress parsing not working with domain names
mplorentz Apr 21, 2022
1803519
Call Bot.exit() in tearDown
mplorentz Apr 21, 2022
74a413b
Remove print statements
mplorentz Apr 21, 2022
13ae8d0
Expect failure for tests affected by #514
mplorentz Apr 21, 2022
f58ca7d
Disable the rest of Beta1MigrationTests
mplorentz Apr 21, 2022
8ee0873
Fix support unit tests (#508)
martindsq Apr 26, 2022
70b12c3
Update CONTRIBUTING.md (#442)
martindsq Apr 26, 2022
480453c
Remove Beta1MigrationTests from the test target until #517 is fixed
mplorentz Apr 26, 2022
d40173d
Merge remote-tracking branch 'origin/main' into bump-version
mplorentz Apr 26, 2022
05adde8
Commit Pods project changes
mplorentz Apr 26, 2022
5baeaa6
Merge branch 'bump-version' into migration_tests
mplorentz Apr 26, 2022
cf6f904
Commit xcodeproj
mplorentz Apr 26, 2022
72a2c03
Update CI to use iOS 15.4
mplorentz Apr 26, 2022
3cd5f05
Upgrade all CI jobs to use macOS 12
mplorentz Apr 26, 2022
e91695b
Fix Codacy issues
mplorentz Apr 26, 2022
a5028e5
Merge branch 'drop-database' into migration_tests
mplorentz Apr 26, 2022
9e7d119
Fix more codacy issues
mplorentz Apr 26, 2022
7aa63de
Fix more codacy issues
mplorentz Apr 26, 2022
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
36 changes: 18 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
unit_test:
name : Unit Tests
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
Expand All @@ -29,56 +29,56 @@ jobs:
PostHogAPIKey: nil
PostHogHost: nil
- name: Build Planetary
run: set -o pipefail && xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme UnitTests -destination "platform=iOS Simulator,name=iPhone 13,OS=15.2" | xcpretty
run: set -o pipefail && xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme UnitTests -destination "platform=iOS Simulator,name=iPhone 13,OS=15.4" | xcpretty
- name: Run Tests
run: set -o pipefail && xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme UnitTests -destination "platform=iOS Simulator,name=iPhone 13,OS=15.2" | xcpretty
run: set -o pipefail && xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme UnitTests -destination "platform=iOS Simulator,name=iPhone 13,OS=15.4" | xcpretty
logger:
name: Logger
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Logger -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Logger -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Logger -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Logger -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
secrets:
name: Secrets
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Secrets -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Secrets -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Secrets -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Secrets -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
analytics:
name: Analytics
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Analytics -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Analytics -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Analytics -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Analytics -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
crashreporting:
name: Crash Reporting
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme CrashReporting -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme CrashReporting -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme CrashReporting -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme CrashReporting -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
support:
name: Support
runs-on: macOS-latest
runs-on: macOS-12
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Support -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -workspace Planetary.xcworkspace -scheme Support -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Support -destination "platform=iOS Simulator,OS=15.2,name=iPhone 13" | xcpretty
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -workspace Planetary.xcworkspace -scheme Support -destination "platform=iOS Simulator,OS=15.4,name=iPhone 13" | xcpretty
9 changes: 8 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ disabled_rules: # rule identifiers turned on by default to exclude from running
- trailing_comma
- trailing_whitespace
- sorted_imports
- private_over_fileprivate
opt_in_rules: # some rules are turned off by default, so you need to opt-in
- attributes
- capture_variable
Expand Down Expand Up @@ -105,7 +106,8 @@ type_name:
max_length: # warning and error
warning: 40
error: 50
excluded: iPhone # excluded via string
excluded:
- Log
allowed_symbols: ["_"] # these are allowed in type names
identifier_name:
min_length: # only min_length
Expand All @@ -122,4 +124,9 @@ identifier_name:
- pub
- bot
- sut
- log
- bar
- top
number_separator:
minimum_length: 5
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging)
Loading