Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1881572 - Review Request: golang-github-projectdiscovery-cdncheck - Filter to check for CDN IP addresses during port scanning
Summary: Review Request: golang-github-projectdiscovery-cdncheck - Filter to check for...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1881562
Blocks: 1881363 1881611
TreeView+ depends on / blocked
 
Reported: 2020-09-22 17:29 UTC by Fabian Affolter
Modified: 2021-08-27 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-27 20:11:22 UTC
Type: Bug
Embargoed:
zebob.m: fedora-review+


Attachments (Terms of Use)

Description Fabian Affolter 2020-09-22 17:29:24 UTC
Spec URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck.spec
SRPM URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck-0-0.1.20200922git19e1db6.fc32.src.rpm

Project URL: https://github.com/projectdiscovery/cdncheck

Description:
A filter to check for CDN IP addresses during port scanning.

Koji scratch build:
fails due to missing dependency

rpmlint output:
$ rpmlint golang-github-projectdiscovery-cdncheck-0-0.1.20200922git19e1db6.fc32.src.rpm 
golang-github-projectdiscovery-cdncheck.src: W: no-%build-section
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

$ rpmlint golang-github-projectdiscovery-cdncheck-devel-0-0.1.20200922git19e1db6.fc32.noarch.rpm 
golang-github-projectdiscovery-cdncheck-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/projectdiscovery/cdncheck/.goipath
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

Fedora Account System Username: fab

Comment 1 Robert-André Mauchin 🐧 2020-11-04 10:31:35 UTC
 - Bump to latest commit before import

 - Tests fail, Seems they need network access:

Testing    in: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build/src
         PATH: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build/bin:/usr/lib64/ccache:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags " -X github.com/projectdiscovery/cdncheck/version=0 -X github.com/projectdiscovery/cdncheck/version.commit=19e1db650e26adfbd81f1e01c66633f7d1ab7e3c -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  '"
      testing: github.com/projectdiscovery/cdncheck
github.com/projectdiscovery/cdncheck
--- FAIL: TestCDNCheck (0.00s)
    cdncheck_test.go:12: 
        	Error Trace:	cdncheck_test.go:12
        	Error:      	Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS12222", Err:(*net.OpError)(0xc000072690)}
        	Test:       	TestCDNCheck
        	Messages:   	Could not create cdncheck client
--- FAIL: TestScrapeRanges (0.00s)
    --- FAIL: TestScrapeRanges/cloudflare (0.00s)
        ranges_test.go:27: 
            	Error Trace:	ranges_test.go:27
            	Error:      	Expected nil, but got: &url.Error{Op:"Get", URL:"https://www.cloudflare.com/ips-v4", Err:(*net.OpError)(0xc0000727d0)}
            	Test:       	TestScrapeRanges/cloudflare
            	Messages:   	Could not scrape cloudflare
    --- FAIL: TestScrapeRanges/incapsula (0.00s)
        ranges_test.go:31: 
            	Error Trace:	ranges_test.go:31
            	Error:      	Expected nil, but got: &url.Error{Op:"Post", URL:"https://my.incapsula.com/api/integration/v1/ips", Err:(*net.OpError)(0xc0000728c0)}
            	Test:       	TestScrapeRanges/incapsula
            	Messages:   	Could not scrape incapsula
    --- FAIL: TestScrapeRanges/akamai (0.00s)
        ranges_test.go:35: 
            	Error Trace:	ranges_test.go:35
            	Error:      	Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS12222", Err:(*net.OpError)(0xc0000729b0)}
            	Test:       	TestScrapeRanges/akamai
            	Messages:   	Could not scrape akamai
    --- FAIL: TestScrapeRanges/sucuri (0.00s)
        ranges_test.go:39: 
            	Error Trace:	ranges_test.go:39
            	Error:      	Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS30148", Err:(*net.OpError)(0xc000072aa0)}
            	Test:       	TestScrapeRanges/sucuri
            	Messages:   	Could not scrape sucuri
FAIL
exit status 1
FAIL	github.com/projectdiscovery/cdncheck	0.008s

Comment 2 Fabian Affolter 2020-12-04 09:22:22 UTC
Thanks for your input.

%changelog
* Mon Nov 16 10:01:13 CET 2020 Fabian Affolter <mail> - 0-0.2.20201116git5bc57c3
- Tests requires network access (#1881572)
- Update to latest commit

Koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=56756864

Updated files:
Spec URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck.spec
https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck-0-0.2.20201116git5bc57c3.fc33.src.rpm

Comment 3 Robert-André Mauchin 🐧 2021-01-25 18:58:48 UTC
 + Please package published version instead of a git commit:

https://github.com/projectdiscovery/cdncheck/releases/tag/v0.0.1

 - License ok
 - Latest version packaged
 - Builds in mock
 - No rpmlint errors
 - Conforms to Packaging Guidelines

Package approved.

Comment 4 Fabian Affolter 2021-02-07 11:57:53 UTC
Thanks for the review.

Comment 5 Mohan Boddu 2021-02-08 16:49:27 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-projectdiscovery-cdncheck


Note You need to log in before you can comment on or make changes to this bug.