https://pantsbuild.org/ logo
#announce
Title
# announce
c

curved-television-6568

11/28/2022, 2:59 PM
Got an issue using the built wheel…
Copy code
BuildConfigurationError: Version mismatch: Requested version was 2.16.0.dev1, our version is 2.16.0.dev1+git57fecb6c.
on M1
p

polite-garden-50641

11/28/2022, 3:00 PM
same error on linux.
Copy code
asher@ip-10-1-201-65 ~/projects/toolchain (pants2.16)$ git diff HEAD^
diff --git a/pants.toml b/pants.toml
index 198ab48c0..f745eae27 100644
--- a/pants.toml
+++ b/pants.toml
@@ -1,5 +1,5 @@
 [GLOBAL]
-pants_version = "2.16.0.dev0"
+pants_version = "2.16.0.dev1"
 print_stacktrace = true

 pantsd_invalidation_globs.add = [
asher@ip-10-1-201-65 ~/projects/toolchain (pants2.16)$ ./pants --version
14:59:49.63 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
    ..
  in pants.core.util_rules.environments.determine_local_environment
    ..
  in pants.core.util_rules.environments.determine_all_environments
    ..
  in construct_scope_environments_preview
    ..
  in pants.engine.internals.options_parsing.scope_options
    ..
  in pants.engine.internals.options_parsing.parse_options
    ..

Traceback (most recent call last):
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 49, in parse_options
    return _Options(options_bootstrapper, build_config, union_membership)
  File "<string>", line 6, in __init__
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 33, in __post_init__
    assert self.options is not None
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/util/memo.py", line 123, in memoize
    result = func(*args, **kwargs)
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/engine/internals/options_parsing.py", line 37, in options
    return self.options_bootstrapper.full_options(self.build_config, self.union_membership)
  File "/data/home/asher/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev1_py39/lib/python3.9/site-packages/pants/option/options_bootstrapper.py", line 287, in full_options
    raise BuildConfigurationError(
pants.base.exceptions.BuildConfigurationError: Version mismatch: Requested version was 2.16.0.dev1, our version is 2.16.0.dev1+git57fecb6c.
e

enough-analyst-54434

11/28/2022, 4:35 PM
I just ran the release script and I won't be around the next few days. Hopefully someone has a clue what has transpired? Does dev0 work? If so that cuts the search space.
p

polite-garden-50641

11/28/2022, 4:43 PM
dev0 works.
(we are using it internally on a dedicated branch)
e

enough-analyst-54434

11/28/2022, 4:54 PM
Ok, thanks. FWICT the most likely candidate is the src/python/pants/VERSION re-jigger, which I still don't understand the motivation for - that happened after dev0, before dev1. I'll try to find some time to confirm this hunch.
h

happy-kitchen-89482

11/28/2022, 5:56 PM
Yeah, almost certainly that…
cc @bitter-ability-32190
b

bitter-ability-32190

11/28/2022, 5:58 PM
The fun never stops
e

enough-analyst-54434

11/28/2022, 6:04 PM
b

bitter-ability-32190

11/28/2022, 6:05 PM
The PR in question didn't change how version bumping is handled. Nor should it have, so I'm perplexed.
Ah John has it
e

enough-analyst-54434

11/28/2022, 6:05 PM
I am not around technically today, but will get to this Wednesday if no-one else has.
b

bitter-ability-32190

11/28/2022, 6:06 PM
I'll take a stab at it later today if no one else assigns it to themselves
How could I repro locally? Run the release script to build wheels locally?
h

happy-kitchen-89482

11/28/2022, 11:43 PM
That goddamn VERSION file never ceases to kill us
🔫 1
🔪 1
⚰️ 1
h

hundreds-father-404

11/29/2022, 1:54 PM
I would expect
reversion.py
script to be relevant here
b

bitter-ability-32190

11/29/2022, 2:03 PM
That PR adjusts an invocation of a function in that file
🚬 1
w

white-pager-32496

12/06/2022, 4:17 AM
Curious if there's a plan to release a dev2 version?
h

hundreds-father-404

12/06/2022, 12:41 PM
yeah, planning to do today 🙂
💯 2
2 Views