-
-
Notifications
You must be signed in to change notification settings - Fork 339
fix: Split ALL_CHANGED_FILES on any whitespace #1566
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
Conversation
✅ Deploy Preview for testcontainers-dotnet ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary by CodeRabbit
WalkthroughThe CI/CD workflow now responds to changes in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/scripts/Filter-TestProjects.ps1 (1)
120-120: Minor: Redundant regex pattern.The character class
[\s\t\n]is redundant because\salready matches all whitespace characters including tabs and newlines.If you proceed with whitespace splitting (though see my critical issue comment above), simplify to:
- $script:allChangedFiles = $env:ALL_CHANGED_FILES -Split "[\s\t\n]" + $script:allChangedFiles = $env:ALL_CHANGED_FILES -Split '\s+'The
+quantifier also prevents creating empty string entries from consecutive whitespace characters.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/scripts/Filter-TestProjects.ps1(1 hunks).github/workflows/cicd.yml(0 hunks)
💤 Files with no reviewable changes (1)
- .github/workflows/cicd.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (127)
- GitHub Check: ci (Testcontainers.BigQuery, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ActiveMq, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.BigQuery, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ActiveMq, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.BigQuery, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ActiveMq, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ActiveMq, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.CockroachDb, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.CockroachDb, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.CockroachDb, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.CockroachDb, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Bigtable, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Cassandra, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.CockroachDb, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ClickHouse, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Azurite, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.ArangoDb, ubuntu-24.04)
- GitHub Check: analyze (csharp)
- GitHub Check: ci (Testcontainers.Oracle21, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle18, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle11, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.OpenSearch, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Oracle, ubuntu-24.04)
- GitHub Check: ci (Testcontainers.Ollama, ubuntu-24.04)
4118c3b to
815d75c
Compare
|
@HofmeisterAn I beleive this is what we need and it's indeed equals to |
|
Yep, I noticed that too after going through the docs again. I even tried it, but I ran into another issue, which was probably a misconfiguration with the string split. I haven't had the time to look into it yet, so I just stuck with this quick fix. |

What does this PR do?
This PR fixes an issue in the incremental build and test setup. The GH Action step that collects all changed files doesn't use
\nas a separator. It uses spaces. I updated the split implementation to split on any whitespace.Previously, the
allChangedFilesvariable only contained a single string with all changed files, which caused the wrong test configurations to run. @digital88, we should double-check whether filenames with spaces might break this. According to the docs, the GH Action step lets you configure the separator, and the default is supposed to be\n, but that doesn't seem to be the case (probably I misunderstood the docs).Why is it important?
To select and run the appropriate test projects.
Related issues
-