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

Fix #4234, send build logs to Nix 2.3 #4418

Closed

Conversation

roberth
Copy link
Member

@roberth roberth commented Jan 2, 2021

Fixes #4234 introduced in #3073

Sends build logs to clients in the extra way that Nix 2.3 clients expects to receive.

The conditional on clientVersion isn't accurate for a certain
range of master commits, but those are unsupported anyway.

It's not accurate for repeated builds either, because that
would complicate the code for too little gain.

@ regnat this is one possible solution. If you have another solution that is perhaps more in line with #3073, we could go with that instead. It changed the way the build logs are treated internally, affecting the log messages on the socket. This PR supplements the log to be compatible with 2.3. I don't think there's much else to it.

The conditional on clientVersion isn't accurate for a certain
range of master commits, but those are unsupported anyway.

It's not accurate for repeated builds either, because that
would complicate the code for too little gain.
@roberth roberth changed the title daemon.cc: Duplicate build output as general logs for Nix 2.3 Fix #4234, send build logs to Nix 2.3 Jan 3, 2021
@roberth
Copy link
Member Author

roberth commented Jan 6, 2021

@edolstra could you have a look?

Copy link

@Rahul75-dev Rahul75-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make all issyes to migrate linux to citrix command to form language c,c++ html modules changes are done

@roberth
Copy link
Member Author

roberth commented Jan 7, 2021

To make all issyes to migrate linux to citrix command to form language c,c++ html modules changes are done

@Rahul75-dev this makes no sense at all. Please delete it or I'll have to report this as spam.

@roberth
Copy link
Member Author

roberth commented Mar 30, 2021

We should increment the protocol version after this is merged, for 2.3-based clients that want to support a wide range of daemon versions correctly.

I would do it myself in this PR, but it's already been three months, so it will probably just cause merge conflicts. :(

@stale
Copy link

stale bot commented Sep 26, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Sep 26, 2021
@roberth
Copy link
Member Author

roberth commented Sep 27, 2021

Personally, I would actually prefer for the behavior of all nix-daemon versions to remain as simple and predictable as possible. You could focus on other important things that remain relevant in the long term / after the upgrade.

@roberth roberth closed this Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nixUnstable doesn't send build output to nix 2.3.8 clients
3 participants