Skip to contentSkip to conversation

Can BB_HASHSERVE still take a 'host:port' value?

DISCUSSION Michael Opdenacker 2 participants 5 messages Dec 14, 2021 – Dec 15, 2021

lore
Share & tools
lore
#0 lore raw

Greetings,

I'm trying to propose more details and updates to the documentation about the Hash Equivalence topic.

Looking at the code, especially at
https://git.openembedded.org/bitbake/tree/lib/bb/cooker.py#n387, I'm wondering whether BB_HASHSERVE can still take a 'host:port' value as the current BitBake documentation says.

From what I've read so far, it seems to me that if BB_HASHSERVE == "auto", a local server is started using a UNIX socket, possibly tied to a remote upstream server specified through BB_HASHSERVE_UPSTREAM.

The other pieces of code where I found BB_HASHSERVE don't seem to show any use of a 'host:port' value either.

Am I right?

Thanks in advance,

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#1 lore raw
Quoted 11 lines · Michael Opdenacker

Greetings,

I'm trying to propose more details and updates to the documentation about the Hash Equivalence topic.

Looking at the code, especially at
https://git.openembedded.org/bitbake/tree/lib/bb/cooker.py#n387, I'm wondering whether BB_HASHSERVE can still take a 'host:port' value as the current BitBake documentation says.

Quoted 6 lines

From what I've read so far, it seems to me that if BB_HASHSERVE == "auto", a local server is started using a UNIX socket, possibly tied to a remote upstream server specified through BB_HASHSERVE_UPSTREAM.

The other pieces of code where I found BB_HASHSERVE don't seem to show any use of a 'host:port' value either.

BB_HASHSERVE can be one of:
1) "auto" to automatically start a local hash server, optionally
using BB_HASHSERVE_UPSTREAM as the upstream
2) HOST:PORT to connect to an existing hash server over TCP
3) unix://PATH to connect to an existing hash server over a UNIX domain socket

Quoted 22 lines

Am I right?

Thanks in advance,

Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2258): https://lists.yoctoproject.org/g/docs/message/2258
Mute This Topic: https://lists.yoctoproject.org/mt/87730814/3616693
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Hi Joshua,

Quoted 16 lines · Joshua Watt
Quoted 14 lines · Michael Opdenacker

Greetings,

I'm trying to propose more details and updates to the documentation about the Hash Equivalence topic.

Looking at the code, especially at
https://git.openembedded.org/bitbake/tree/lib/bb/cooker.py#n387, I'm wondering whether BB_HASHSERVE can still take a 'host:port' value as the current BitBake documentation says.

From what I've read so far, it seems to me that if BB_HASHSERVE == "auto", a local server is started using a UNIX socket, possibly tied to a remote upstream server specified through BB_HASHSERVE_UPSTREAM.

Quoted 7 lines
Quoted 2 lines

The other pieces of code where I found BB_HASHSERVE don't seem to show any use of a 'host:port' value either.

BB_HASHSERVE can be one of:
1) "auto" to automatically start a local hash server, optionally
using BB_HASHSERVE_UPSTREAM as the upstream
2) HOST:PORT to connect to an existing hash server over TCP
3) unix://PATH to connect to an existing hash server over a UNIX domain socket

Thanks for confirming this.
However, when BB_HASHSERVE is set to "HOST:PORT", may I ask you were this is implemented in the code?
Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
Quoted 29 lines · Michael Opdenacker

Hi Joshua,

Quoted 16 lines · Joshua Watt
Quoted 14 lines · Michael Opdenacker

Greetings,

I'm trying to propose more details and updates to the documentation about the Hash Equivalence topic.

Looking at the code, especially at
https://git.openembedded.org/bitbake/tree/lib/bb/cooker.py#n387, I'm wondering whether BB_HASHSERVE can still take a 'host:port' value as the current BitBake documentation says.

From what I've read so far, it seems to me that if BB_HASHSERVE == "auto", a local server is started using a UNIX socket, possibly tied to a remote upstream server specified through BB_HASHSERVE_UPSTREAM.

Quoted 7 lines
Quoted 2 lines

The other pieces of code where I found BB_HASHSERVE don't seem to show any use of a 'host:port' value either.

BB_HASHSERVE can be one of:
1) "auto" to automatically start a local hash server, optionally
using BB_HASHSERVE_UPSTREAM as the upstream
2) HOST:PORT to connect to an existing hash server over TCP
3) unix://PATH to connect to an existing hash server over a UNIX domain socket

Quoted 3 lines

Thanks for confirming this.
However, when BB_HASHSERVE is set to "HOST:PORT", may I ask you were this is implemented in the code?

"HOST:PORT" and "unix://" are handled by create_server in bitbake/lib/hashserv/__init__.py

"auto" is handled by handlePRServ in
bitbake/lib/bb/cooker.py

Quoted 8 lines

Thanks again
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#4 lore raw
Quoted 3 lines · Joshua Watt

"HOST:PORT" and "unix://" are handled by create_server in bitbake/lib/hashserv/__init__.py

Thanks, that allowed me to find the "parse_address()" that reads these settings.
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com