daos icon indicating copy to clipboard operation
daos copied to clipboard

DAOS-623 build: Add SCONS_ENV option

Open jolivier23 opened this issue 3 years ago • 8 comments

Allow one to propagate external environment with SCONS_ENV=user

Required-githooks: true

Signed-off-by: Jeff Olivier [email protected]

jolivier23 avatar Sep 28 '22 19:09 jolivier23

Bug-tracker data: Ticket title is 'Generic ticket for minor code cleanup and improvement' Status is 'Resolved' https://daosio.atlassian.net/browse/DAOS-623

github-actions[bot] avatar Sep 28 '22 19:09 github-actions[bot]

LGTM, and even wonder if the default should be user. Though that would change the default behavior

I just modified it...Let's see what happens in CI with the different default.

jolivier23 avatar Sep 28 '22 20:09 jolivier23

Test stage Build on Leap 15 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10432/2/execution/node/450/log

daosbuild1 avatar Sep 28 '22 20:09 daosbuild1

Test stage Build on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10432/2/execution/node/356/log

daosbuild1 avatar Sep 28 '22 21:09 daosbuild1

Test stage Build on Leap 15 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10432/3/execution/node/449/log

daosbuild1 avatar Sep 28 '22 23:09 daosbuild1

Test stage Build on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10432/3/execution/node/355/log

daosbuild1 avatar Sep 28 '22 23:09 daosbuild1

There's also https://github.com/daos-stack/daos/blob/master/SConstruct#L331-L338 to look at as well.

ashleypittman avatar Oct 07 '22 08:10 ashleypittman

Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-10432/5/execution/node/1137/log

daosbuild1 avatar Oct 08 '22 00:10 daosbuild1

What's left to do with this one? FWIW, SCONS_ENV=full works for my purposes on Frontera, where gcc, cmake, and some others are in non-standard paths.

daltonbohning avatar Dec 16 '22 19:12 daltonbohning

For what it's worth I've found out how to do this with .files in a users home directory if that would be preferable.

ashleypittman avatar Dec 16 '22 19:12 ashleypittman

For what it's worth I've found out how to do this with .files in a users home directory if that would be preferable.

I'd rather have an option than define something external before building. But what is the general flow of doing this with .files?

daltonbohning avatar Dec 16 '22 20:12 daltonbohning

For what it's worth I've found out how to do this with .files in a users home directory if that would be preferable.

I'd rather have an option than define something external before building. But what is the general flow of doing this with .files?

The page I was working from is this one. https://steelpangolin.wordpress.com/2014/02/06/modifying-scons-environment-variables-globally/

ashleypittman avatar Dec 16 '22 20:12 ashleypittman

The page I was working from is this one. https://steelpangolin.wordpress.com/2014/02/06/modifying-scons-environment-variables-globally/

As simple as that approach is, I think this PR is less error-prone

daltonbohning avatar Dec 16 '22 20:12 daltonbohning

@jolivier23 @ashleypittman Could we get an updated version of this PR, please? After the latest scons changes this check is now failing: https://github.com/daos-stack/daos/blob/aa64f5092d4c3b2107bd38c392c9a9437c322c33/SConstruct#L348-L349

daltonbohning avatar Jan 20 '23 19:01 daltonbohning

@jolivier23 @ashleypittman Could we get an updated version of this PR, please? After the latest scons changes this check is now failing:

From @ashleypittman, we need init the PreReqComponent before the stdatomic check https://github.com/daos-stack/daos/blob/f99382ba1006ada422ab84d03a6808c38131c7d5/SConstruct#L347-L352

daltonbohning avatar Jan 20 '23 21:01 daltonbohning

FYI that @ashleypittman this change in #11291. Maybe we can close this PR?

daltonbohning avatar Jan 26 '23 17:01 daltonbohning

FYI that @ashleypittman this change in #11291. Maybe we can close this PR?

that PR is still a draft. this looks ready to land :-)

mchaarawi avatar Jan 26 '23 17:01 mchaarawi

FYI that @ashleypittman this change in #11291. Maybe we can close this PR?

that PR is still a draft. this looks ready to land :-)

I'm fixing some other issues at the same time so it's still in testing.

For what it's worth both PRs add the SCONS_ENV option (I copied the code from here) however that option is still not enough to solve the initial problem however it is a step forwards.

ashleypittman avatar Jan 26 '23 18:01 ashleypittman

#11291 landed. Suggest closing this one

daltonbohning avatar Feb 16 '23 15:02 daltonbohning

I think you could close this now.

ashleypittman avatar Mar 03 '23 19:03 ashleypittman