Skip to content

fix: move .scalafix.conf out to root#3888

Merged
bobbai00 merged 2 commits into
mainfrom
fix/move-scalafix-conf
Oct 13, 2025
Merged

fix: move .scalafix.conf out to root#3888
bobbai00 merged 2 commits into
mainfrom
fix/move-scalafix-conf

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

By default, .scalafix.conf should be placed in project root. This PR fixes the issue, now sbt scalafixAll can execute properly by finding the correct rules.

Copilot AI review requested due to automatic review settings October 13, 2025 05:05
@github-actions github-actions Bot added the fix label Oct 13, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Yicong-Huang Yicong-Huang self-assigned this Oct 13, 2025
@Yicong-Huang Yicong-Huang changed the title fix: move scalafix.conf out to root fix: move .scalafix.conf out to root Oct 13, 2025
@bobbai00 bobbai00 merged commit 51cf0b6 into main Oct 13, 2025
11 checks passed
@bobbai00 bobbai00 deleted the fix/move-scalafix-conf branch October 13, 2025 05:24
Yicong-Huang added a commit that referenced this pull request May 2, 2026
…ks run (#4654)

### What changes were proposed in this PR?

Close `.github/labeler.yml` gaps where root-level / workflow-adjacent
config files matched no rule that maps to a CI stack:

**Scala build / lint config → `service` label** (so the scala stack
runs):

- `build.sbt` (root)
- `project/**` (sbt build sources, `plugins.sbt`)
- `.scalafix.conf` (moved to root by #3888)
- `.scalafmt.conf`

Today these match either `**/build.sbt` (label `dependencies`, which
`LABEL_STACKS` from #4640 maps to no-op) or no rule at all. A PR that
only edits one of them skipped the scala stack — concrete example: PR
#4649, labels `dependencies, fix, frontend, release/v1.1.0-incubating`,
union `{frontend}`, no scala. `service` already maps to scala in
`LABEL_STACKS`, so the union picks up scala automatically.

**Workflow-adjacent / repo-wide config → `ci` label** (so the full
matrix runs):

- `.github/scripts/**` (CI helper scripts)
- `.github/labeler.yml` (the labeler config itself)
- `.asf.yaml` (branch protection rulesets, mailing list, GitHub
features)

These currently match no rule. `ci` already maps to all four stacks,
which is the right gate for changes that can affect every stack.

### Any related issues, documentation, discussions?

Closes #4653.

### How was this PR tested?

This PR's own labeler run picks up `ci` (it edits
`.github/labeler.yml`), so all stacks gate the change. After merge,
future PRs that only edit a root scala build file pick up `service`, and
PRs editing `.github/scripts/**`, `.github/labeler.yml`, or `.asf.yaml`
pick up `ci`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7
github-actions Bot pushed a commit that referenced this pull request May 2, 2026
…ks run (#4654)

### What changes were proposed in this PR?

Close `.github/labeler.yml` gaps where root-level / workflow-adjacent
config files matched no rule that maps to a CI stack:

**Scala build / lint config → `service` label** (so the scala stack
runs):

- `build.sbt` (root)
- `project/**` (sbt build sources, `plugins.sbt`)
- `.scalafix.conf` (moved to root by #3888)
- `.scalafmt.conf`

Today these match either `**/build.sbt` (label `dependencies`, which
`LABEL_STACKS` from #4640 maps to no-op) or no rule at all. A PR that
only edits one of them skipped the scala stack — concrete example: PR
#4649, labels `dependencies, fix, frontend, release/v1.1.0-incubating`,
union `{frontend}`, no scala. `service` already maps to scala in
`LABEL_STACKS`, so the union picks up scala automatically.

**Workflow-adjacent / repo-wide config → `ci` label** (so the full
matrix runs):

- `.github/scripts/**` (CI helper scripts)
- `.github/labeler.yml` (the labeler config itself)
- `.asf.yaml` (branch protection rulesets, mailing list, GitHub
features)

These currently match no rule. `ci` already maps to all four stacks,
which is the right gate for changes that can affect every stack.

### Any related issues, documentation, discussions?

Closes #4653.

### How was this PR tested?

This PR's own labeler run picks up `ci` (it edits
`.github/labeler.yml`), so all stacks gate the change. After merge,
future PRs that only edit a root scala build file pick up `service`, and
PRs editing `.github/scripts/**`, `.github/labeler.yml`, or `.asf.yaml`
pick up `ci`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

(backported from commit 5c7dac8)
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…ks run (apache#4654)

### What changes were proposed in this PR?

Close `.github/labeler.yml` gaps where root-level / workflow-adjacent
config files matched no rule that maps to a CI stack:

**Scala build / lint config → `service` label** (so the scala stack
runs):

- `build.sbt` (root)
- `project/**` (sbt build sources, `plugins.sbt`)
- `.scalafix.conf` (moved to root by apache#3888)
- `.scalafmt.conf`

Today these match either `**/build.sbt` (label `dependencies`, which
`LABEL_STACKS` from apache#4640 maps to no-op) or no rule at all. A PR that
only edits one of them skipped the scala stack — concrete example: PR
apache#4649, labels `dependencies, fix, frontend, release/v1.1.0-incubating`,
union `{frontend}`, no scala. `service` already maps to scala in
`LABEL_STACKS`, so the union picks up scala automatically.

**Workflow-adjacent / repo-wide config → `ci` label** (so the full
matrix runs):

- `.github/scripts/**` (CI helper scripts)
- `.github/labeler.yml` (the labeler config itself)
- `.asf.yaml` (branch protection rulesets, mailing list, GitHub
features)

These currently match no rule. `ci` already maps to all four stacks,
which is the right gate for changes that can affect every stack.

### Any related issues, documentation, discussions?

Closes apache#4653.

### How was this PR tested?

This PR's own labeler run picks up `ci` (it edits
`.github/labeler.yml`), so all stacks gate the change. After merge,
future PRs that only edit a root scala build file pick up `service`, and
PRs editing `.github/scripts/**`, `.github/labeler.yml`, or `.asf.yaml`
pick up `ci`.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants