- Issue created by @wim leers
- @wim-leers opened merge request.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
All 3 remaining failures are because our build tests are not keeping the
composer.lock
file up-to-date correctly. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π UnknownPathExcluder should use ComposerInspector instead of ComposerUtility Fixed landed.
- Status changed to Needs work
over 1 year ago 11:12am 10 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π Remove FixtureManipulator::modifyPackage() last usage Fixed also landed!
- Assigned to wim leers
- Issue was unassigned.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I'm hoping somebody else can find whatever this last blocker is, I've already tried dozens of things π¬
- Assigned to phenaproxima
- πΊπΈUnited States phenaproxima Massachusetts
I'll see how far I can take it.
- πΊπΈUnited States phenaproxima Massachusetts
I think I know what's happening here.
In PackageUpdateTest (the one I debugged), we are changing the definition of the repositories for the
alpha
andupdated_module
projects. The repository definitions are part of the hash that is used by Composer to determine if composer.lock and composer.json are out of sync. Since we change the repo definitions, but don't run acomposer update
(rightfully so) just before we call ComposerInspector::validate(), Composer freaks out.The answer, I think, is that we cannot be changing the path repository definitions. In the test, we have to create the path repository once, then change its contents as needed.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:57pm 13 March 2023 - Assigned to phenaproxima
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Woah! Yeah those build tests definitely are different beasts when it comes to their fixtures π Never had to deal with them so far!
I have one question for you, @phenaproxima π€ I don't feel strongly about it, but I think what I suggested would be clearer. Curious what you think!
- Assigned to wim leers
- Assigned to phenaproxima
- Status changed to RTBC
over 1 year ago 10:08pm 15 March 2023 - πΊπΈUnited States phenaproxima Massachusetts
Quoth Wim in #11:
I don't feel strongly about it, but I think what I suggested would be clearer.
I tried to implement this suggestion but I couldn't get it to work. Since Wim doesn't feel strongly about it, I think this improvement to our tests has waited long enough. I'm happy with it.
-
phenaproxima β
committed 919519b3 on 3.0.x authored by
Wim Leers β
Issue #3346520 by Wim Leers, phenaproxima: Explicitly validate lock...
-
phenaproxima β
committed 919519b3 on 3.0.x authored by
Wim Leers β
- Status changed to Fixed
over 1 year ago 10:08pm 15 March 2023 - Status changed to Needs work
over 1 year ago 8:58am 16 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π
β¦ but that still means we need a follow-up issue to investigate, since we clearly do not understand why we need that extra
composer update --lock
. Not understanding that is not acceptable IMHO.(I was fine with committing something that makes the overall system more stable, reliable and predictable. But I'm not fine with not understanding why we need a particular incantation πͺπ±)
- πΊπΈUnited States phenaproxima Massachusetts
We donβt need the incantation. I proved that. Itβs removed from what I committed.
- Status changed to Fixed
over 1 year ago 11:35am 16 March 2023 - πΊπΈUnited States phenaproxima Massachusetts
Given that I removed the mysterious incantation that wasn't needed (as I suspected it wasn't), I'm sending this back to fixed. AFAIK we don't need a follow-up.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Ahh, I confused this with the other thread on GitLab, and gave up waiting for GitLab's UI to finally load β apologies!
Even better π
Automatically closed - issue fixed for 2 weeks with no activity.