Skip to content

fix(ci): exclude mkdocs.yml file and sonar.properties from the changed-modules script #2993

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

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Feb 20, 2025

What does this PR do?

It adds an exclusion list of files that won't add all the modules to the changed modules list.

Why is it important?

A PR adding a new module, i.e. scyllaDB, will include changes in the mkdocs.yml file (for the website) and in the sonar.properties file (for sonar).

Before these changes, it would cause all modules to be added to the build, which is not desired.

How to test this PR

Execute the script:

  • A module is modified with a file that is excluded:
    ALL_CHANGED_FILES="modules/kafka/a.go mkdocs.yml" ./scripts/changed-modules.sh
    The output should be: the modules/kafka module.
  • A excluded file and a file from the core module are modified:
   ALL_CHANGED_FILES="mkdocs.yml sonar-project.properties go.mod" ./scripts/changed-modules.sh
    The output should be: all modules.
  • Only excluded files are modified:
    ALL_CHANGED_FILES="mkdocs.yml sonar-project.properties" ./scripts/changed-modules.sh
    The output should be: no modules.

@mdelapenya mdelapenya requested a review from a team as a code owner February 20, 2025 18:36
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Feb 20, 2025
@mdelapenya mdelapenya self-assigned this Feb 20, 2025
@mdelapenya mdelapenya requested a review from stevenh February 20, 2025 18:36
@mdelapenya mdelapenya changed the title fix: exclude mkdocs.yml file and sonar.properties from the changed-modules script fix(ci): exclude mkdocs.yml file and sonar.properties from the changed-modules script Feb 20, 2025
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 8b49fd6
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/67b776c9732f0b00081bfc08
😎 Deploy Preview https://deploy-preview-2993--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdelapenya mdelapenya merged commit 7d63d42 into testcontainers:main Feb 20, 2025
179 checks passed
@mdelapenya mdelapenya deleted the fix-ci-modules branch February 20, 2025 19:45
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Mar 13, 2025
* main:
  chore: enable empty-block from revive (testcontainers#2994)
  fix(ci): exclude mkdocs.yml file and sonar.properties from the changed-modules script (testcontainers#2993)
  chore(ci): run compose module tests against the upstream compose projects (testcontainers#2990)
  chore(ci): add an end job to verify the pipeline finished with success (testcontainers#2991)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant