Closed dlangille closed 4 years ago
My first test run of commit extraction from a non-ports repo was successful:
[ingress@devgit-ingress01 /usr/local/libexec/freshports]$ /usr/local/libexec/freshports/git-to-freshports-xml.py --path /var/db/ingress/repos/freebsd --single-commit 3e44a9ea4d507b6e2552e2117cf514c6448c7b20 --spooling /var/db/ingress/message-queues/spooling --output /var/db/ingress/testing --repo=src
[ingress@devgit-ingress01 /usr/local/libexec/freshports]$
[ingress@devgit-ingress01 ~/testing]$ ls -l
total 9
-rw-rw-r-- 1 ingress ingress 722 Jul 26 14:46 2020.07.26.10.07.05.000000.3e44a9ea4d507b6e2552e2117cf514c6448c7b20.xml
[ingress@devgit-ingress01 ~/testing]$ cat 2020.07.26.10.07.05.000000.3e44a9ea4d507b6e2552e2117cf514c6448c7b20.xml
<?xml version='1.0' encoding='UTF-8'?>
<UPDATES Version="1.4.0.0">
<UPDATE>
<DATE Year="2020" Month="7" Day="26"/>
<TIME Timezone="UTC" Hour="10" Minute="7" Second="5"/>
<OS Repo="src" Id="FreeBSD" Branch="master"/>
<LOG>arm64: Only compile imx8 files if soc_freescale_imx8 is selected
No Objection from: gonzo</LOG>
<PEOPLE>
<UPDATER Handle="manu <manu@FreeBSD.org>"/>
</PEOPLE>
<COMMIT Hash="3e44a9ea4d507b6e2552e2117cf514c6448c7b20" HashShort="3e44a9e" Subject="arm64: Only compile imx8 files if soc_freescale_imx8 is selected" EncodingLoses="false" Repository="src"/>
<FILES>
<FILE Action="Modify" Path="sys/conf/files.arm64"/>
</FILES>
</UPDATE>
</UPDATES>
[ingress@devgit-ingress01 ~/testing]$
Next step, making sure the legacy code honors the Repository="src"
parameter from the XML and selects the correct repo for extracting data.
This just got easier.
The XML process does not access the repo unless it is a ports
commit.
This issue affects only the ingress
side of commits, not the processing side.
At present, we are working on only the ports repo (
freebsd-ports
). This issue will cover the work to add these repos:freebsd
- src repo