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

Package level whitelisting #44

Merged
merged 1 commit into from
Aug 30, 2013

Conversation

retronym
Copy link
Contributor

Adds support for package level filter such as:

filter {
    packages = [
        "scala.reflect.internal",
    ]
}

Changes the config loading to use a default config, to
avoid errors if we load a whitelist that only has one of
problems or packages.

Tested manually with the build from Scala 2.10.2.

Procedure:

  1. Publish modified version of MiMa to my local maven repo:

    sbt> set every publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
    sbt> publish

  2. Point to the new version in mima.classpath in scala/scala's build.xml

  3. Induce a BC failure (actually its enough to build without -optimize, ant build test.bc)

  4. Filter this out with packages = ["scala.xml"].

  5. Confirm that the problem isn't filtered if:

    • the packages section is omitted entirely
    • the packages section exists, but is empty
    • the packages section contains "scala.xm" or "scala.xmllll"

Review by @gkossakowski

Adds support for package level filter such as:

    filter {
        packages = [
            "scala.reflect.internal",
        ]
    }

Changes the config loading to use a default config, to
avoid errors if we load a whitelist that only has one of
`problems` or `packages`.

Tested manually with the build from Scala 2.10.2.

Procedure:

1. Publish modified version of MiMa to my local maven repo:

    sbt> set every publishTo := Some(Resolver.file("file",  new File(Path.userHome.absolutePath+"/.m2/repository")))
    sbt> publish

2. Point to the new version in mima.classpath in scala/scala's build.xml

3. Induce a BC failure (actually its enough to build without -optimize, `ant build test.bc`)

4. Filter this out with `packages = ["scala.xml"]`.

5. Confirm that the problem *isn't* filtered if:
  - the `packages` section is omitted entirely
  - the `packages` section exists, but is empty
  - the `packages` section contains "scala.xm" or "scala.xmllll"
@dotta
Copy link
Contributor

dotta commented Aug 22, 2013

@gkossakowski I just made you a member of this repository. I think it make sense to have someone from the Scala team to help with reviews & releases, as you guys are the main MiMa users ;-)

@gkossakowski
Copy link
Contributor

I'm on vacation until Monday. I'll review this either on Monday or Tuesday.

@gkossakowski
Copy link
Contributor

Testing it right now.

@gkossakowski
Copy link
Contributor

Tested successfully. Good work!

gkossakowski added a commit that referenced this pull request Aug 30, 2013
@gkossakowski gkossakowski merged commit 3807ee6 into lightbend-labs:master Aug 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants