GSoC 25 Proposal Draft: Automate Processes Within Django Contribution Workflow

Hi Adya.
I saw your comment on the ticket and now I just found this thread.

I just started working on it this weekend. I thought I’d do it faster, but I was short on time. I have no problem with you taking it.

I’m sharing my comments and what I was able to do so far.


Natalia’s feedback

From my point of view, the next step is to “play” with my PR and Simon’s project, and think about how we can improve the Django setup. One important thing is that we won’t be adding any new dependencies to Django for development, so for now, although one could use playright unofficially, the “official” solution wouldn’t be possible (at least not without a forum post for the community to give their opinion).

What I’ve done

# First fork django
# Move to issue branch
gh repo clone marcorichetta/django
gh pr checkout 18211

# Merge with main to update the branch
git merge main

# Create virtualenv and follow tests/README.rst
uv venv --python 3.12 # pyproject requirement
source .venv/bin/activate
cd tests
uv pip install -e ..
uv pip install -r requirements/py3.txt # Comment pylibmc until I can build it

# Run all tests
./runtests.py 

Run only selenium tests

./runtests.py --selenium=firefox,chrome --headless --screenshots

The tests I’m interested on

  • ./runtests.py --selenium=firefox,chrome --headless --screenshots news/
  • I was able to run the /news tests and see the admin images generated
  • Images are generated in docs/ref/contrib/admin/_images/

TODO

  • Fix failing errors
  • Fix Sarah’s suggestions on Github PR
  • How can I make this tests to be run manually? (or how to generate this images on demand?)
2 Likes