Skip to content

Commit

Permalink
Revert "[internal] add mark and fixture for lockfile generation (pant…
Browse files Browse the repository at this point in the history
…sbuild#15190)" (pantsbuild#15267)

This causes the build wheels job to fail, which blocks the release: https://github.com/pantsbuild/pants/runs/6181314347?check_suite_focus=true#step:10:1878

This reverts commit 0147029.

[ci skip-rust]
  • Loading branch information
Eric-Arellano authored Apr 27, 2022
1 parent 4c49626 commit 21f8a51
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 439 deletions.
9 changes: 0 additions & 9 deletions pants-plugins/internal_plugins/test_lockfile_fixtures/BUILD

This file was deleted.

Empty file.
26 changes: 0 additions & 26 deletions pants-plugins/internal_plugins/test_lockfile_fixtures/register.py

This file was deleted.

272 changes: 0 additions & 272 deletions pants-plugins/internal_plugins/test_lockfile_fixtures/rules.py

This file was deleted.

1 change: 0 additions & 1 deletion pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ backend_packages.add = [
"pants.backend.experimental.scala.lint.scalafmt",
"pants.backend.experimental.scala.debug_goals",
"internal_plugins.releases",
"internal_plugins.test_lockfile_fixtures",
]
plugins = [
"hdrhistogram", # For use with `--stats-log`.
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/backend/scala/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()

python_test_utils(name="test_utils")
4 changes: 1 addition & 3 deletions src/python/pants/backend/scala/compile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()

python_tests(name="tests", timeout=240, dependencies=[":test_resources"])
resources(name="test_resources", sources=["*.test.lock"])
python_tests(name="tests", timeout=240)
26 changes: 0 additions & 26 deletions src/python/pants/backend/scala/compile/scala-library.test.lock

This file was deleted.

10 changes: 2 additions & 8 deletions src/python/pants/backend/scala/compile/scalac_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
maybe_skip_jdk_test,
)
from pants.jvm.util_rules import rules as util_rules
from pants.testutil.lockfile_fixture import JVMLockfileFixture
from pants.testutil.rule_runner import PYTHON_BOOTSTRAP_ENV, QueryRule, RuleRunner, logging


Expand Down Expand Up @@ -66,10 +65,6 @@ def rule_runner() -> RuleRunner:
return rule_runner


LOCKFILE_REQUIREMENTS = pytest.mark.jvm_lockfile(
path="scala-library.test.lock", requirements=["org.scala-lang:scala-library:2.13.6"]
)

DEFAULT_LOCKFILE = TestCoursierWrapper(
CoursierResolvedLockfile(
(
Expand Down Expand Up @@ -147,8 +142,7 @@ def main(args: Array[String]): Unit = {


@maybe_skip_jdk_test
@LOCKFILE_REQUIREMENTS
def test_compile_no_deps(rule_runner: RuleRunner, jvm_lockfile: JVMLockfileFixture) -> None:
def test_compile_no_deps(rule_runner: RuleRunner) -> None:
rule_runner.write_files(
{
"BUILD": dedent(
Expand All @@ -159,7 +153,7 @@ def test_compile_no_deps(rule_runner: RuleRunner, jvm_lockfile: JVMLockfileFixtu
"""
),
"3rdparty/jvm/BUILD": DEFAULT_SCALA_LIBRARY_TARGET,
"3rdparty/jvm/default.lock": jvm_lockfile.serialized_lockfile,
"3rdparty/jvm/default.lock": DEFAULT_LOCKFILE,
"ExampleLib.scala": SCALA_LIB_SOURCE,
}
)
Expand Down
Loading

0 comments on commit 21f8a51

Please sign in to comment.