-
Notifications
You must be signed in to change notification settings - Fork 35
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
Package dmarc-srg into Debian #154
Comments
Thank you for your attention to my project! I appreciate that. BTW: Some time ago I was surprised to discover that DmarcSrg is used in NetBSD. |
It is really cool, and Debian has no such tool.
Okay, perfect. That is what I had in mind. I did notice your copyright on the files is 2020 but the first commit it 2021. Is 2020 the right year for the start of your copyright ?
Oh cool ! |
You seem to have phpunit tests, is there a reason to not use GitHub actions to run them ? |
Do you use Debian or Ubuntu ? |
Project started in 2020 and only used on my personal server. In January 2021, I put it online.
For now, I see no reason to use Github actions as long as the same tests I can run on my local computer. Maybe later.
I use Debian (trixie). |
Okay, for information I will run your tests in debian. They call it autopkgtests.
Awesome, you will have the package first then! |
I will have to patch the software to move the path of At phpMyAdmin we have a vendor_config file to help maintaining such patches: https://github.com/phpmyadmin/phpmyadmin/blob/master/app/vendor_config.php Edit: I am not sure why but only the Apache2 logs indicate that the file is missing. Maybe some lines to print a message could work ? |
I tried running the tests, and phpunit 11 (version in Debian) is unhappy about all the mocks.. But this 3 ones are easy to fix with zero impacts:
|
Done. |
Do you mean that information about unavailability of the configuration file should be output not only to the log, but also to the browser / console?
Unfortunately, phpunit is currently broken in my debian instance, I can't check and fix the tests right now. I'm waiting for update for phpunit from Debian team. |
Thank you, it looks good ! Ref: b459815 also to fix it |
Yes indeed, the browser was missing that indication.
What do you mean, do you use the version in testing or unstable ? |
That makes sense. But only if the current user is admin. For other users, display something else, I think. |
Trixie, the latest version. $ phpunit --version
PHPUnit 11.5.3 by Sebastian Bergmann and contributors.
$ tests/run.sh
PHPUnit 11.5.3 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.27
EEEEEEEE....................E.......E.D..EEEEE...EEFFFEFEEEEEEE 63 / 188 ( 33%)
EEE..........EEEF.EEEEEEEEEEEEEFEEEFFEEEEFEEEFFFEEEE........... 126 / 188 ( 67%)
....................EEEEEEEEEEFFEEFFFEEEEEEEEEEEEE............ 188 / 188 (100%)
An error occurred inside PHPUnit.
Message: file_put_contents(/usr/bin/.phpunit.result.cache): Failed to open stream: Permission denied
Location: /usr/share/php/PHPUnit/Runner/ResultCache/DefaultResultCache.php:160
#0 [internal function]: PHPUnit\TextUI\Application->{closure}()
#1 /usr/share/php/PHPUnit/Runner/ResultCache/DefaultResultCache.php(160): file_put_contents()
#2 /usr/share/php/PHPUnit/Runner/ResultCache/ResultCacheHandler.php(60): PHPUnit\Runner\ResultCache\DefaultResultCache->persist()
#3 /usr/share/php/PHPUnit/Runner/ResultCache/Subscriber/TestSuiteFinishedSubscriber.php(24): PHPUnit\Runner\ResultCache\ResultCacheHandler->testSuiteFinished()
#4 /usr/share/php/PHPUnit/Event/Dispatcher/DirectDispatcher.php(106): PHPUnit\Runner\ResultCache\TestSuiteFinishedSubscriber->notify()
#5 /usr/share/php/PHPUnit/Event/Dispatcher/DeferringDispatcher.php(47): PHPUnit\Event\DirectDispatcher->dispatch()
#6 /usr/share/php/PHPUnit/Event/Emitter/DispatchingEmitter.php(1194): PHPUnit\Event\DeferringDispatcher->dispatch()
#7 /usr/share/php/PHPUnit/Framework/TestSuite.php(374): PHPUnit\Event\DispatchingEmitter->testSuiteFinished()
#8 /usr/share/php/PHPUnit/TextUI/TestRunner.php(64): PHPUnit\Framework\TestSuite->run()
#9 /usr/share/php/PHPUnit/TextUI/Application.php(210): PHPUnit\TextUI\TestRunner->run()
#10 /usr/bin/phpunit(104): PHPUnit\TextUI\Application->run() This may be because I haven't updated php to the latest version yet. |
Nevermind this, there is two ways
It will not go away by itself, this is new in phpunit |
Thank you for information. |
Done. $ tests/run.sh
PHPUnit 11.5.3 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.27
............................................................... 63 / 188 ( 33%)
............................................................... 126 / 188 ( 67%)
.............................................................. 188 / 188 (100%)
Time: 00:01.116, Memory: 12.00 MB
OK (188 tests, 639 assertions) |
I am amazed, this got to Debian FTP masters that did review it directly. Tracking (will look better tomorrow): https://tracker.debian.org/pkg/dmarc-srg |
That's great news. When I decided to put my project on the web, I assumed that few people would use it because of its simplicity and specificity of use. Of course, I didn't even think it would be considered worthy of use in Debian. I'm impressed! Thank you so much! |
It's simplicity is one of the first key points of your work. It just works💯 Please check the security tab of github and write a policy to help future researchers 😉 I will write a blog post about your incredible tool some time soon |
This is so much of a great tool and I can not donate, that I can only propose to make it enter Debian.
What does it require:
dmarc-srg/composer.json
Lines 14 to 22 in 4c932e7
@liuch do you have any observations ?
I found no ITP in https://wnpp.debian.net/
so I will file a new one: Done, here it is https://bugs.debian.org/1094136The packaging will take place in https://salsa.debian.org/php-team/pear/dmarc-srg
The text was updated successfully, but these errors were encountered: