Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML validation #3790

Merged
merged 5 commits into from
Apr 6, 2020
Merged

YAML validation #3790

merged 5 commits into from
Apr 6, 2020

Conversation

tripleee
Copy link
Member

@tripleee tripleee commented Apr 2, 2020

This adds a test case to check the YAML lists for some simple problems.

Testing revealed a number of issues which are also solved with this PR.

  • Embarrassing typos in a regex
  • Embarrassing typos in a couple of watched NS entries
  • Comment out a number of stale NSes which no longer resolve

The commented-out entries should probably be removed eventually, but some of the issues may be transient, so I want to keep them around and revisit them in a few weeks.

tripleee added 3 commits April 2, 2020 21:38
IP validation regex had a couple of silly bugs -- finally properly tested
There is no lena.ns.cloudflare.com; maybe this was supposed to be Art+Lana?
(Only one hit, in October 2019 -- the watch was from early December.)
@tripleee
Copy link
Member Author

tripleee commented Apr 3, 2020

The test currently adds about 45 seconds to the duration of the test suite. Maybe it should be hacked to run only at the end.

@tripleee
Copy link
Member Author

tripleee commented Apr 3, 2020

The CI test failure looks spurious; I sometimes get this on my laptop, too.

Will rebase and re-push and hope it works this time.

blacklists.py: refactor slightly to facilitate validation
watched_nses.yml Outdated
@@ -516,7 +513,9 @@ items:
ns: mihanwebhost.com.
- ns: offshoreracks.com.
- ns: sathyats.net.
- ns: shared-host.org.
- comment: no longert responding 2020-04-02
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've substituted typos in NSes to typos in comments :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing, I'll fix and merge on Monday.

Special case "pass: true" for recent freak addition; probably remove the code
in blacklists.py to support this case if it goes away
@tripleee tripleee merged commit 8857bac into Charcoal-SE:master Apr 6, 2020
@tripleee tripleee deleted the yaml-validation branch April 6, 2020 07:00
@tripleee
Copy link
Member Author

tripleee commented Apr 9, 2020

See also now #3793.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants