[SERVER-67398] The build with the legacy install mode is broken Created: 21/Jun/22  Updated: 29/Oct/23  Resolved: 14/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.15
Fix Version/s: 4.4.16

Type: Bug Priority: Major - P3
Reporter: Konstantin Trushin Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-62992 Remove need for resmoke.ini Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

The command:

buildscripts/scons.py CPPPATH="${AWS_LIBS}/include" LIBPATH="${AWS_LIBS}/lib" -j$(nproc) --disable-warnings-as-errors --install-mode=legacy MONGO_VERSION=4.4.15 mongod

Expected result: the build is done
Got result: the following error

AttributeError: 'SConsEnvironment' object has no attribute 'AutoInstall':
  File "/home/ktrushin/code/psmdb/SConstruct", line 4784:
    env.SConscript(
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/ktrushin/code/psmdb/src/SConscript", line 27:
    env.SConscript('mongo/SConscript', exports=['env'])
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/ktrushin/code/psmdb/src/mongo/SConscript", line 28:
    env.SConscript(
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/ktrushin/code/psmdb/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/ktrushin/code/psmdb/src/mongo/resmoke/SConscript", line 16:
    resmoke_py_install = env.AutoInstall(

 

Sprint: Dev Platform 2022-07-25
Participants:

 Description   

While the hygienic install mode works as expected, the building with the legacy install mode fails. 



 Comments   
Comment by Githook User [ 14/Jul/22 ]

Author:

{'name': 'Konstantin Trushin', 'email': 'konstantin.trushin@percona.com', 'username': 'ktrushin'}

Message: SERVER-67398: Fix the build with the legacy install mode

Closes https://github.com/mongodb/mongo/pull/1472

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
Branch: v4.4
https://github.com/mongodb/mongo/commit/e382f48fc03c6bcc5bb89188721812b101a8d6e6

Comment by Ryan Egesdahl (Inactive) [ 14/Jul/22 ]

Note to future archaeologists: this was broken when SERVER-62992 was backported because we use hygienic install mode by default in our releases on the v4.4 branch.

Comment by Chris Kelly [ 01/Jul/22 ]

Received, thank you! I will forward this to SDP.

 

Comment by Konstantin Trushin [ 01/Jul/22 ]

Hi Christopher,

Sorry for the long delay in response. I was waiting for the legal department of my company to examine the Contributor's Agreement. There are no objections from them so I have signed it.

Regards,
Konstantin.

Comment by Chris Kelly [ 23/Jun/22 ]

Hi Konstantin!

Thanks for making this pull request! We just need you to sign our Contributor's Agreement as part of our considering the PR.

Christopher

Comment by Konstantin Trushin [ 21/Jun/22 ]

The PR fixes the issue.

Generated at Thu Feb 08 06:08:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.