<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/bitbake/lib/toaster/toastermain, branch master-next</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=master-next</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=master-next'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2025-02-27T15:12:55+00:00</updated>
<entry>
<title>bitbake: lib: Remove double imports</title>
<updated>2025-02-27T15:12:55+00:00</updated>
<author>
<name>Michael Estner</name>
<email>michaelestner@web.de</email>
</author>
<published>2025-02-25T18:34:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e1836b205a2716e85f36346762805e2e505a5eb6'/>
<id>urn:sha1:e1836b205a2716e85f36346762805e2e505a5eb6</id>
<content type='text'>
* Remove double imports mentioned by pylint

(Bitbake rev: 741db6719efca5aa9ef2c15e60cdd624e4aa1a8d)

Signed-off-by: Michael Estner &lt;michaelestner@web.de&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toastermain/settings: Avoid python filehandle closure warnings</title>
<updated>2023-12-06T22:28:03+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2023-12-05T16:03:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=786ba56074ca9374ae5b4f7b06e1d554f8169d23'/>
<id>urn:sha1:786ba56074ca9374ae5b4f7b06e1d554f8169d23</id>
<content type='text'>
Switch to using with blocks when accessing files to ensure file
descriptors are closed and avoid python warnings.

(Bitbake rev: e8574ee78eea23cc35900610bb15e47e40ef5ee1)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: make django temp directory configurable</title>
<updated>2023-11-23T15:25:01+00:00</updated>
<author>
<name>Alexander Lussier-Cullen</name>
<email>alexander.lussier-cullen@savoirfairelinux.com</email>
</author>
<published>2023-11-23T15:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=6a87f5d53b52422f4a1e12f945495ed9951f7676'/>
<id>urn:sha1:6a87f5d53b52422f4a1e12f945495ed9951f7676</id>
<content type='text'>
Modify the django settings to make cache, logs and databases save
to a configurable directory with TOASTER_DJANGO_TMPDIR instead of
the machine root level /tmp directory.

In addition, add this variable to the passthroughs for tox.

This change is made to facilitate cleaning test files for runs on
the autobuilder and avoid errors involving the persisted database.

(Bitbake rev: 887aaa91fd54ef24fc3cce42d584b381e37d3343)

Signed-off-by: Alexander Lussier-Cullen &lt;alexander.lussier-cullen@savoirfairelinux.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: drop deprecated USE_L10N from settings</title>
<updated>2023-11-14T23:39:53+00:00</updated>
<author>
<name>Tim Orling</name>
<email>ticotimo@gmail.com</email>
</author>
<published>2023-11-10T15:31:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ca74df3a6900f7836fe617a0baec65c4efe003aa'/>
<id>urn:sha1:ca74df3a6900f7836fe617a0baec65c4efe003aa</id>
<content type='text'>
Every build currently results in a warning because of the USE_L10N deprecation.

https://docs.djangoproject.com/en/4.2/ref/settings/#use-l10n

(Bitbake rev: 89df63d967dd3091fba7943f5fe5a98e2c3871e3)

Signed-off-by: Tim Orling &lt;tim.orling@konsulko.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: Write logs to BUILDDIR/toaster_logs</title>
<updated>2023-10-27T07:32:29+00:00</updated>
<author>
<name>Alassane Yattara</name>
<email>alassane.yattara@savoirfairelinux.com</email>
</author>
<published>2023-10-27T00:36:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7e0cce4f6b754e33a0652b516d622b6b40b3abd7'/>
<id>urn:sha1:7e0cce4f6b754e33a0652b516d622b6b40b3abd7</id>
<content type='text'>
Fixes "2efb14648 toaster: Monitoring - implement Django logging system" when
running in a container.

When running in a container, the previous approach of using BASE_DIR
is not a writable path. Also, we really do not want to be writing logs into
the source tree, as the BASE_DIR was resolving to bitbake/lib/toaster/logs

Since Toaster is only ever running in an environment where oe-init-buildenv
or similar has been sourced, we should instead write the logs to BUILDDIR.

Using BUILDDIR to logs make path writable but django-log-viewer does'nt manage
to write logs using an absolute path as BUILDDIR, where the existing toaster_ui.log
was already being written.

Also drop the /logs/ directory, as it has not been created which also breaks
in a container environment

To handle the constraints linked to django-log-viewer and /logs/, we've updated
bitbake/bin/toaster to create a toaster_logs/ directory in BUILDDIR if it doesn't exist,
when toaster starts up.

Also manage to set BUILDDIR/toaster_logs/ as default location for toaster logs.

(Bitbake rev: efbd9d54f57be7a7a10f0b56e7e62c25974e99e6)

Signed-off-by: Alassane Yattara &lt;alassane.yattara@savoirfairelinux.com&gt;
Signed-off-by: Tim Orling &lt;tim.orling@konsulko.com&gt;
Tested-by: Tim Orling &lt;tim.orling@konsulko.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: Toaster: bug-fix on /toastermain/logs.py</title>
<updated>2023-10-23T10:46:36+00:00</updated>
<author>
<name>Alassane Yattara</name>
<email>alassane.yattara@savoirfairelinux.com</email>
</author>
<published>2023-10-17T20:32:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b879dc5d9ab96798304742bb2de381ed71cb20a4'/>
<id>urn:sha1:b879dc5d9ab96798304742bb2de381ed71cb20a4</id>
<content type='text'>
- Update /toastermain/logs.py to fix:
AttributeError: 'NoneType' object has no attribute 'view_name'

Signed-off-by Alassane Yattara &lt;alassane.yattara@savoirfairelinux.com&gt;

(Bitbake rev: 307f40fc83a0e3d530bf934ef4aefd8e15cf27de)

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: Monitoring - implement Django logging system</title>
<updated>2023-10-06T10:42:46+00:00</updated>
<author>
<name>Alassane Yattara</name>
<email>alassane.yattara@savoirfairelinux.com</email>
</author>
<published>2023-10-04T13:44:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=78b02e1845c0b0ccf75b9de6801798ea4340addc'/>
<id>urn:sha1:78b02e1845c0b0ccf75b9de6801798ea4340addc</id>
<content type='text'>
(Bitbake rev: 2efb146480ee46c0463d9edb71bf1c03ce15bcf2)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: import only used layers</title>
<updated>2023-08-30T09:41:54+00:00</updated>
<author>
<name>David Reyna</name>
<email>David.Reyna@windriver.com</email>
</author>
<published>2023-08-28T08:45:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=6553377beaded3fa7841dd2da4d4d0a0d04cffce'/>
<id>urn:sha1:6553377beaded3fa7841dd2da4d4d0a0d04cffce</id>
<content type='text'>
If you import a build directory, Toaster still adds openembedded-core,
meta-poky and meta-yocto-bsp to the newly created project. Toaster
should only be including in the project the layers that it imported.

[YOCTO #13764]

(Bitbake rev: e73c4d7685a3bd6b806a8f1a3600a3a86266f0b6)

Signed-off-by: Kieran McNulty &lt;Kieran.McNulty@windriver.com&gt;
Signed-off-by: David Reyna &lt;David.Reyna@windriver.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: Update to Django 4.2</title>
<updated>2023-08-30T09:41:54+00:00</updated>
<author>
<name>David Reyna</name>
<email>David.Reyna@windriver.com</email>
</author>
<published>2023-08-28T08:45:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9ccaee95d6afc65d528b469d16b4719733768ef6'/>
<id>urn:sha1:9ccaee95d6afc65d528b469d16b4719733768ef6</id>
<content type='text'>
Update Toaster to support Django 4.2, to match current
hosts and to address CVEs.

[YOCTO #15152]

(Bitbake rev: 4f5b1f5bede402295bf4dfc8845fe2f38973e157)

Signed-off-by: Kieran McNulty &lt;Kieran.McNulty@windriver.com&gt;
Signed-off-by: David Reyna &lt;David.Reyna@windriver.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: toaster: set DEFAULT_AUTO_FIELD</title>
<updated>2022-03-15T08:40:09+00:00</updated>
<author>
<name>Tim Orling</name>
<email>ticotimo@gmail.com</email>
</author>
<published>2022-03-12T20:31:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b81e582d80f6a5b8b451124df92c24e173d93dd9'/>
<id>urn:sha1:b81e582d80f6a5b8b451124df92c24e173d93dd9</id>
<content type='text'>
New in Django 3.2.

Silence warnings by adding:

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

in toastermain/settings.py

(Bitbake rev: cbc5a8e339a8b5eb4cdd89ad898af432f05cadfb)

Signed-off-by: Tim Orling &lt;tim.orling@konsulko.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
