Skip to content

Commit 5d6f7df

Browse files
committed
Add code to delete IDE dependency
1 parent 25d8d9c commit 5d6f7df

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Changed
66

7-
- Made log file `dash.log` (instead of `flutter.log`).
7+
- Made log file `dash.log` (instead of `flutter.log`). (#8638)
88

99
### Removed
1010

build.gradle.kts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,18 @@ intellijPlatform {
307307
}
308308
}
309309

310-
//tasks.named<VerifyPluginTask>("verifyPlugin") {
311-
// doLast {
312-
// val ideDirFile = ideDir.get().asFile
313-
// if (ideDirFile.exists()) {
314-
// println("Deleting IDE directory: " + ideDirFile.absolutePath)
315-
// ideDirFile.deleteRecursively()
316-
// }
317-
// }
318-
//}
310+
// If we don't delete old versions of the IDE during `verifyPlugin`, then GitHub action bots can run out of space.
311+
tasks.withType<VerifyPluginTask> {
312+
doLast {
313+
ides.forEach { ide ->
314+
if (ide.exists()) {
315+
println("Deleting IDE directory at ${ide.path}")
316+
val result = ide.deleteRecursively()
317+
println("IDE was deleted? $result")
318+
}
319+
}
320+
}
321+
}
319322

320323
tasks {
321324
register<Test>("integration") {

tool/github.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,15 @@ elif [ "VERIFY_BOT" = "$BOT" ] ; then
8585

8686
echo "Check on space before verifyPlugin for 243\n"
8787
df -h
88-
./gradlew verifyPlugin -PsingleIdeVersion=243
89-
./gradlew clean
88+
./gradlew verifyPlugin -PsingleIdeVersion=243 --refresh-dependencies
9089

9190
echo "Check on space before verifyPlugin for 251\n"
9291
df -h
93-
./gradlew verifyPlugin -PsingleIdeVersion=251
94-
./gradlew clean
92+
./gradlew verifyPlugin -PsingleIdeVersion=251 --refresh-dependencies
9593

9694
echo "Check on space before verifyPlugin for 252\n"
9795
df -h
98-
./gradlew verifyPlugin -PsingleIdeVersion=252
99-
./gradlew clean
96+
./gradlew verifyPlugin -PsingleIdeVersion=252 --refresh-dependencies
10097

10198
elif [ "INTEGRATION_BOT" = "$BOT" ]; then
10299
# Run the integration tests

0 commit comments

Comments
 (0)