Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "01.Version-cache - restructuring of Makefile.work" #12367

Closed
wants to merge 1 commit into from

Conversation

saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Oct 12, 2022

Reverts #12000

Changes in this PR are resulting in the exit code always being 0 for builds that failed. See #12344 as an example. This is causing builds to appear as successful when they're not.

Tested by using make -f Makefile.work BLDENV=buster SONIC_BUILD_JOBS=6 target/debs/buster/libsaithriftv2-dev_0.9.4_amd64.deb as the build command. This is an invalid build target, since SAITHRIFT_V2 isn't enabled, and so the above target cannot be built. At 95f4af3 (before this PR), the command has an exit code of 2 (which is correct). At c691b73, this command has an exit code of 0 (which is incorrect). For the sake of time, the slave container tags have been hardcoded in Makefile.work.

@saiarcot895
Copy link
Contributor Author

@Kalimuthu-Velappan FYI

@Kalimuthu-Velappan
Copy link
Contributor

I have fixed the issue in the below PR, still you want to revert?
#12369

@saiarcot895
Copy link
Contributor Author

I'm fine with a fix. I didn't see a quick fix, and so opened a PR to revert it.

@saiarcot895
Copy link
Contributor Author

Closing this in favor of #12369

Kalimuthu-Velappan added a commit to Kalimuthu-Velappan/sonic-buildimage that referenced this pull request Oct 13, 2022
This PR fixes the issue reported in PR#12367
sonic-net#12367

The issue is that exit code always being 0 for the builds that are failed.

Fix is added in the Makefile.work to return the error code
when the slave build is failed with an error.
xumia pushed a commit that referenced this pull request Oct 13, 2022
This PR fixes the issue reported in PR#12367
#12367

The issue is that exit code always being 0 for the builds that are failed.

Fix is added in the Makefile.work to return the error code
when the slave build is failed with an error.
@lguohan lguohan deleted the revert-12000-RESTRUCTURE branch December 20, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants