Project:Project issue file test
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Change PIFT to only be the "server" portion and call PIFR directly.

Format of PIFR XMLRPC request.

pifr.batch.queue($server_key, $batch)
where $batch is an array of files of the format

array(
[nid] => 0,
[cid] => 0,
[filename] => 'basename-without files/issues...'
)

example filename: somefile_0.patch

Comments

#1

I've designed by code to work with server keys since it will need to deal with lots of slaves and such...the keys will add security as they act like a login.

As part of the xmlrpc request is the server_key which will need to be set on t.d.o and d.o...as I have it coded each server has there own so d.o which it will send with the batch of files to be tested...

t.d.o will sends its own key back to d.o (which will also need to be stored on d.o)

so two variables of 32 character strings.

AttachmentSize
server_info.png 18.97 KB

#2

Status:active» postponed (maintainer needs more info)

[filename] => 'basename-without files/issues...'

i believe it is a mistake to do it this way, since both the files directory and the issues directory are configurable. PIFT currently sends the full URL of the patch file -- can you adjust your code to this style?

otherwise, is the $batch array the exact same structure that PIFT has already been sending? looks like it...

#3

Currently my code stores the files directory for each of the servers in a table so that it doesn't have to pass around the elongated paths. I could change it, but I don't see why it is necessary.

#4

Currently my code stores the files directory for each of the servers in a table

this just seems error prone to me. the server sending the files will always know what it's files and issues directories are.

i'm not sure why passing around the full URL is cumbersome?

#5

Title:Call PIFT directly» Call PIFR directly
Status:postponed (maintainer needs more info)» fixed

attached has been committed to 5.x and HEAD. note that i did not alter the format of the $batch array at all from the original PIFT format -- i'm pretty sure that we want to send the full patch URL as i have suggested before.

i've moved to using the server keys as you requested.

AttachmentSize
pift_call_pifr.patch 9.07 KB

--project followup subject--

Automatically closed -- issue fixed for two weeks with no activity.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here