Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Update for new hash equivalence server
@ 2019-09-16 17:49 Joshua Watt
  2019-09-16 17:49 ` [PATCH 1/2] sstatesig: Update server URI Joshua Watt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joshua Watt @ 2019-09-16 17:49 UTC (permalink / raw)
  To: openembedded-core

Updates to deal with the new hash equivalence server in bitbake

Joshua Watt (2):
  sstatesig: Update server URI
  Remove SSTATE_HASHEQUIV_SERVER

 meta/classes/sstate.bbclass | 5 -----
 meta/conf/bitbake.conf      | 2 +-
 meta/lib/oe/sstatesig.py    | 8 ++------
 3 files changed, 3 insertions(+), 12 deletions(-)

-- 
2.21.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] sstatesig: Update server URI
  2019-09-16 17:49 [PATCH 0/2] Update for new hash equivalence server Joshua Watt
@ 2019-09-16 17:49 ` Joshua Watt
  2019-09-16 17:49 ` [PATCH 2/2] Remove SSTATE_HASHEQUIV_SERVER Joshua Watt
  2019-09-16 18:02 ` ✗ patchtest: failure for Update for new hash equivalence server Patchwork
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Watt @ 2019-09-16 17:49 UTC (permalink / raw)
  To: openembedded-core

The server no longer uses a "http://" URI, since it has been updated to
use a different protocol.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/lib/oe/sstatesig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 0c7a6f5ed84..b1ef5c039b3 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -264,7 +264,7 @@ class SignatureGeneratorOEEquivHash(bb.siggen.SignatureGeneratorUniHashMixIn, Si
         super().init_rundepcheck(data)
         autostart = data.getVar('BB_HASHSERVE')
         if autostart:
-            self.server = "http://" + autostart
+            self.server = autostart
         else:
             self.server = data.getVar('SSTATE_HASHEQUIV_SERVER')
         if not self.server:
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Remove SSTATE_HASHEQUIV_SERVER
  2019-09-16 17:49 [PATCH 0/2] Update for new hash equivalence server Joshua Watt
  2019-09-16 17:49 ` [PATCH 1/2] sstatesig: Update server URI Joshua Watt
@ 2019-09-16 17:49 ` Joshua Watt
  2019-09-16 18:02 ` ✗ patchtest: failure for Update for new hash equivalence server Patchwork
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Watt @ 2019-09-16 17:49 UTC (permalink / raw)
  To: openembedded-core

Removes all references to the SSTATE_HASHEQUIV_SERVER variable. This
variable is redundant now that BB_HASHSERVE is present.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/classes/sstate.bbclass | 5 -----
 meta/conf/bitbake.conf      | 2 +-
 meta/lib/oe/sstatesig.py    | 8 ++------
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 11222223a9b..b47b9c23bf2 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -89,11 +89,6 @@ SSTATE_HASHEQUIV_METHOD[doc] = "The fully-qualified function used to calculate \
     the output hash for a task, which in turn is used to determine equivalency. \
     "
 
-SSTATE_HASHEQUIV_SERVER ?= ""
-SSTATE_HASHEQUIV_SERVER[doc] = "The hash equivalence sever. For example, \
-    'http://192.168.0.1:5000'. Do not include a trailing slash \
-    "
-
 SSTATE_HASHEQUIV_REPORT_TASKDATA ?= "0"
 SSTATE_HASHEQUIV_REPORT_TASKDATA[doc] = "Report additional useful data to the \
     hash equivalency server, such as PN, PV, taskname, etc. This information \
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index a0a7f4911e0..263d8aea4fb 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -872,7 +872,7 @@ BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH BBSERVER DL_DI
     CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_NOHASHDIR LICENSE_PATH SDKPKGSUFFIX \
     WARN_QA ERROR_QA WORKDIR STAMPCLEAN PKGDATA_DIR BUILD_ARCH SSTATE_PKGARCH \
     BB_WORKERCONTEXT BB_LIMITEDDEPS BB_UNIHASH extend_recipe_sysroot DEPLOY_DIR \
-    SSTATE_HASHEQUIV_METHOD SSTATE_HASHEQUIV_SERVER SSTATE_HASHEQUIV_REPORT_TASKDATA \
+    SSTATE_HASHEQUIV_METHOD SSTATE_HASHEQUIV_REPORT_TASKDATA \
     SSTATE_HASHEQUIV_OWNER CCACHE_TOP_DIR BB_HASHSERVE"
 BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \
     SSH_AUTH_SOCK PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS \
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index b1ef5c039b3..50d80bf51a1 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -262,13 +262,9 @@ class SignatureGeneratorOEEquivHash(bb.siggen.SignatureGeneratorUniHashMixIn, Si
 
     def init_rundepcheck(self, data):
         super().init_rundepcheck(data)
-        autostart = data.getVar('BB_HASHSERVE')
-        if autostart:
-            self.server = autostart
-        else:
-            self.server = data.getVar('SSTATE_HASHEQUIV_SERVER')
+        self.server = data.getVar('BB_HASHSERVE')
         if not self.server:
-            bb.fatal("OEEquivHash requires SSTATE_HASHEQUIV_SERVER or BB_HASHSERVE to be set")
+            bb.fatal("OEEquivHash requires BB_HASHSERVE to be set")
         self.method = data.getVar('SSTATE_HASHEQUIV_METHOD')
         if not self.method:
             bb.fatal("OEEquivHash requires SSTATE_HASHEQUIV_METHOD to be set")
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* ✗ patchtest: failure for Update for new hash equivalence server
  2019-09-16 17:49 [PATCH 0/2] Update for new hash equivalence server Joshua Watt
  2019-09-16 17:49 ` [PATCH 1/2] sstatesig: Update server URI Joshua Watt
  2019-09-16 17:49 ` [PATCH 2/2] Remove SSTATE_HASHEQUIV_SERVER Joshua Watt
@ 2019-09-16 18:02 ` Patchwork
  2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2019-09-16 18:02 UTC (permalink / raw)
  To: Joshua Watt; +Cc: openembedded-core

== Series Details ==

Series: Update for new hash equivalence server
Revision: 1
URL   : https://patchwork.openembedded.org/series/19979/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch            [2/2] Remove SSTATE_HASHEQUIV_SERVER
 Issue             Shortlog does not follow expected format [test_shortlog_format] 
  Suggested fix    Commit shortlog (first line of commit message) should follow the format "<target>: <summary>"



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-16 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-16 17:49 [PATCH 0/2] Update for new hash equivalence server Joshua Watt
2019-09-16 17:49 ` [PATCH 1/2] sstatesig: Update server URI Joshua Watt
2019-09-16 17:49 ` [PATCH 2/2] Remove SSTATE_HASHEQUIV_SERVER Joshua Watt
2019-09-16 18:02 ` ✗ patchtest: failure for Update for new hash equivalence server Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox