Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
af587b4
Update CI files
pulpbot May 24, 2022
e117402
Update CI files
pulpbot May 25, 2022
d263d22
Add content queryset scoping
gerrod3 Apr 28, 2022
790aa69
Minor refactor
dralley May 24, 2022
4f1880c
Port the test_sync module to pytest
bmbouter May 27, 2022
88967bb
RepoVersion viewset does not need qs scoping.
ipanova May 26, 2022
0010fe8
Port the test_crud_remotes to pytest
bmbouter May 27, 2022
36a7e95
Update CI files
pulpbot Jun 1, 2022
0cee79b
Update CI files
pulpbot Jun 5, 2022
175d8fc
Add new condition on file uploads
gerrod3 Jun 2, 2022
c505f9b
Port test crud content unit to pytest
bmbouter Jun 6, 2022
807c12e
Skip a failing test in nightly
bmbouter Jun 10, 2022
403e87f
Adds python package name to AppConfig
bmbouter Jun 10, 2022
ad9870f
Use hyphen for the python_package_name
ipanova Jun 13, 2022
17a21f4
Adjust error code.
ipanova Jun 14, 2022
69478cd
Updates CI with latest plugin_template changes.
dkliban Jun 17, 2022
c1a1333
Add test for creating content from upload
mdellweg Jun 7, 2022
ebb4bdb
Change ordering parameter in tests to be a list
mdellweg Jun 17, 2022
9ae7c66
Update plugin template
bmbouter Jun 22, 2022
35ff6bb
Update Changelog
pulpbot Jun 23, 2022
97c4404
Converts download policy tests to use pytest fixtures
dkliban Jun 28, 2022
9a12cb2
Update CI files
pulpbot Jul 3, 2022
79e3f72
Fix the URL of a remote
lubosmj Jul 1, 2022
cde55b6
Remove the plugin removal test
goosemania Jun 21, 2022
966e1ba
Refactors the auto publish and distribute tests to pytest fixtures
dkliban Jul 2, 2022
ed3a9da
Refactors ACS tests to use pytest fixtures
dkliban Jul 6, 2022
c34245d
Check permission of uploads on content creation
mdellweg Jun 20, 2022
727cd83
Expands the download_policy tests to include downloading content
dkliban Jul 7, 2022
2318fcf
Removes test_pulp_manifest test module
dkliban Jul 8, 2022
e316778
Refactors publication tests to use pytest fixtures
dkliban Jul 8, 2022
670247c
Update CI files
pulpbot Jul 10, 2022
5271b2d
Adds more assertions about validation to the ACS tests.
dkliban Jul 8, 2022
14168bc
Converts content cache tests to use pytest fixtures
dkliban Jul 11, 2022
758701c
Improved error message when parsing invalid manifest file
MichalPysik Jul 5, 2022
2a72d56
Add test for content directory listing
gerrod3 Jun 7, 2022
4a2d4f3
Refactors content delivery tests to use pytest fixtures
dkliban Jul 11, 2022
5348e70
Removes SyncPublishContentPathTestCase
dkliban Jul 13, 2022
9c4a12e
Converts rbac contet guard tests to pytest fixtures
dkliban Jul 13, 2022
d71c284
Converts content promotion tests to use pytest fixtures
dkliban Jul 14, 2022
68cdbde
Convert CRUD Repo tests to pytest
gerrod3 Jul 14, 2022
6423e5d
Remove print statement
gerrod3 Jul 19, 2022
8c29e78
Update CI files
pulpbot Jul 24, 2022
634dc67
The relative_path field of PULP_MANIFEST can now contain commas
MichalPysik Jul 11, 2022
86af0e8
Update CI files
pulpbot Jul 25, 2022
63cfc91
Extends tests for Publications
dkliban Jul 25, 2022
b179920
Bump minor version
pulpbot Jul 27, 2022
d3ec901
Use the pulp_admin_user fixture
mdellweg Jul 27, 2022
6aad36d
1.11.0 changelog
pulpbot Jul 28, 2022
ac3ffea
Update Changelog
pulpbot Aug 2, 2022
a230c05
Update CI files
pulpbot Aug 7, 2022
6fad73e
Moved the range-header tests into download policy tests
dkliban Aug 3, 2022
4998eca
Converts the Distribution CRUD tests to use pytest fixtures
dkliban Aug 15, 2022
544f5a3
Resolve failures in the nightly performance tests
lubosmj Aug 16, 2022
8e61732
Update Changelog
pulpbot Aug 16, 2022
2e11e19
Update CI files
pulpbot Aug 14, 2022
8169d9c
Update Changelog
pulpbot Aug 17, 2022
8a55eaa
Add a test for filtering distributions by content
lubosmj Jul 20, 2022
10af831
Update CI files
pulpbot Aug 19, 2022
c27ddb5
Update CI files
pulpbot Aug 30, 2022
24a3cc3
Add test for repository remote filter
gerrod3 Jul 18, 2022
547f5c0
Fix generic list tests
mdellweg Aug 30, 2022
6e1d2ea
Add tests for mimetypes returned by content-app
lubosmj Aug 31, 2022
4fbb831
Added test for listing master model remotes
MichalPysik Aug 29, 2022
580b163
Update CI files
pulpbot Sep 4, 2022
c540e60
Allow uploading existing FileContent units
MichalPysik Aug 4, 2022
c87b548
Update CI files
pulpbot Sep 13, 2022
9aac98d
Add test for hidden distributions in listing
mdellweg Sep 12, 2022
7b1c3c1
Update plugin-template
mikedep333 Sep 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.11.0.dev
current_version = 1.12.0.dev
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?
Expand Down
7 changes: 7 additions & 0 deletions .ci/ansible/settings.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ TOKEN_SIGNATURE_ALGORITHM = "ES256"
CACHE_ENABLED = True
REDIS_HOST = "localhost"
REDIS_PORT = 6379
TELEMETRY = False

{% if api_root is defined %}
API_ROOT = {{ api_root | repr }}
Expand All @@ -19,6 +20,12 @@ API_ROOT = {{ api_root | repr }}
{% endfor %}
{% endif %}

{% if pulp_scenario_settings is defined and pulp_scenario_settings %}
{% for key, value in pulp_scenario_settings.items() %}
{{ key | upper }} = {{ value | repr }}
{% endfor %}
{% endif %}

{% if stream_test | default(false) -%}
REDIRECT_TO_OBJECT_STORAGE = False
DEFAULT_FILE_STORAGE = "pulpcore.app.models.storage.PulpSFTPStorage"
Expand Down
4 changes: 2 additions & 2 deletions .ci/ansible/smash-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"selinux enabled": false,
"version": "3",
"aiohttp_fixtures_origin": "172.18.0.1"
"aiohttp_fixtures_origin": "127.0.0.1"
},
"hosts": [
{
Expand All @@ -26,7 +26,7 @@
"pulp workers": {},
"redis": {},
"shell": {
"transport": "docker"
"transport": "local"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/ansible/start_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
image: "{{ item.image }}"
auto_remove: true
recreate: true
privileged: false
privileged: true
networks:
- name: pulp_ci_bridge
aliases: "{{ item.name }}"
Expand Down
Empty file removed .ci/assets/bindings/.gitkeep
Empty file.
16 changes: 16 additions & 0 deletions .ci/scripts/tweet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
import sys
from tweepy import Client

release_version = sys.argv[1]
if release_version.endswith(".0"):
client = Client(
consumer_key=os.getenv("TWITTER_API_KEY"),
consumer_secret=os.getenv("TWITTER_API_KEY_SECRET"),
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
)
link = "https://docs.pulpproject.org/pulp_file/changes.html"
msg = f"pulp_file-{release_version} - Check out for more details: {link}"
release_msg = f"Hey! We've just released {msg}"
client.create_tweet(text=release_msg)
27 changes: 9 additions & 18 deletions .ci/scripts/update_ci_branches.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_file' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template

import os
import re
import sys
import requests
from packaging.version import Version
from git import Repo

try:
initial_branch = sys.argv[1]
except IndexError:
initial_branch = None

repo = Repo(os.getcwd())
heads = repo.git.ls_remote("--heads", "https://github.com/pulp/pulp_file.git").split("\n")
branches = [h.split("/")[-1] for h in heads if re.search(r"^([0-9]+)\.([0-9]+)$", h.split("/")[-1])]
branches.sort(key=lambda ver: Version(ver))
branches = sys.argv[1:]

headers = {
"Authorization": f"Bearer {os.environ['GITHUB_TOKEN']}",
"Accept": "application/vnd.github.v3+json",
}

if not initial_branch or initial_branch not in branches:
exit("Initial branch not found")
else:
starting = branches.index(initial_branch)

github_api = "https://api.github.com"
workflow_path = "/actions/workflows/update_ci.yml/dispatches"
url = f"{github_api}/repos/pulp/pulp_file{workflow_path}"

for branch in branches[starting:]:
for branch in branches:
print(f"Updating {branch}")
requests.post(url, headers=headers, json={"ref": branch})
24 changes: 17 additions & 7 deletions .ci/scripts/upper_bound.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
import warnings
from pkg_resources import Requirement

packages = []
with open("requirements.txt", "r") as fd:
for line in fd.readlines():
if not line.startswith("#"):
req = Requirement.parse(line)
spec = str(req.specs)
if len(req.specs) < 2 and "~=" not in spec and "==" not in spec and "<" not in spec:
packages.append(req.name)

try:
with open("requirements.txt", "r") as fd:
for line in fd.readlines():
if not line.startswith("#"):
req = Requirement.parse(line)
spec = str(req.specs)
if "~=" in spec:
warnings.warn(f"Please avoid using ~= on {req.name}")
continue
if len(req.specs) < 2 and "==" not in spec and "<" not in spec:
packages.append(req.name)
except FileNotFoundError:
# skip this test for plugins that don't use a requirements.txt
pass

if packages:
raise RuntimeError(
"The following packages are missing upper bound: {}".format(", ".join(packages))
Expand Down
8 changes: 4 additions & 4 deletions .ci/scripts/validate_commit_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
# For more info visit https://github.com/pulp/plugin_template

import re
import subprocess
import sys
import warnings
from pathlib import Path
import subprocess


import os
import warnings
from github import Github


NO_ISSUE = "[noissue]"
CHANGELOG_EXTS = [".feature", ".bugfix", ".doc", ".removal", ".misc", ".deprecation"]
sha = sys.argv[1]
message = subprocess.check_output(["git", "log", "--format=%B", "-n 1", sha]).decode("utf-8")


KEYWORDS = ["fixes", "closes"]

sha = sys.argv[1]
message = subprocess.check_output(["git", "log", "--format=%B", "-n 1", sha]).decode("utf-8")
g = Github(os.environ.get("GITHUB_TOKEN"))
repo = g.get_repo("pulp/pulp_file")

Expand Down
20 changes: 16 additions & 4 deletions flake8.cfg → .flake8
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_file' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
[flake8]
exclude = ./docs/*,*/migrations/*,*/tests/*
ignore = W503,Q000,Q003,D100,D104,D106,D200,D205,D400,D401,D402,D202
exclude = ./docs/*,*/migrations/*
ignore = E203,W503,Q000,Q003,D100,D104,D106,D200,D205,D400,D401,D402
max-line-length = 100

# Flake8 builtin codes
# --------------------
# E203: no whitespace around ':'. disabled until https://github.com/PyCQA/pycodestyle/issues/373 is fixed
# W503: This enforces operators before line breaks which is not pep8 or black compatible.

# Flake8-quotes extension codes
# -----------------------------
# W503: This enforces operators before line breaks which is not pep8 or black compatible.
# Q000: double or single quotes only, default is double (don't want to enforce this)
# Q003: Change outer quotes to avoid escaping inner quotes

# Flake8-docstring extension codes
# --------------------------------
# D100: missing docstring in public module
# D104: missing docstring in public package
# D106: missing docstring in public nested class (complains about "class Meta:" and documenting those is silly)
# D200: one-line docstring should fit on one line with quotes
# D202: no blank line after docstring--disabled until https://github.com/PyCQA/pydocstyle/issues/361 is fixed
# D205: 1 blank line required between summary line and description
# D400: First line should end with a period
# D401: first line should be imperative (nitpicky)
# D402: first line should not be the function’s “signature” (false positives)
59 changes: 59 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_file' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 90

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 30

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- security
- planned

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: stale

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# Limit to only `issues` or `pulls`
only: pulls

pulls:
markComment: |-
This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

unmarkComment: >-
This pull request is no longer marked for closure.

closeComment: >-
This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

issues:
markComment: |-
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

unmarkComment: >-
This issue is no longer marked for closure.

closeComment: >-
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-130-ge87b661
2021.08.26-174-g23ccb65
Loading