mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	tests: Treat github.com/zulip links as external.
Tests for these links often result in rate-limiting from GitHub, leading to the builds failing in Circle CI. We temporarily mark github.com/zulip links as external to keep the builds passing.
This commit is contained in:
		
				
					committed by
					
						
						Mateusz Mandera
					
				
			
			
				
	
			
			
			
						parent
						
							bfd92260fd
						
					
				
				
					commit
					376cd88a83
				
			@@ -70,8 +70,10 @@ class BaseDocumentationSpider(scrapy.Spider):
 | 
			
		||||
            # We also want CI to check any links to built documentation.
 | 
			
		||||
            return False
 | 
			
		||||
        if 'github.com/zulip' in url:
 | 
			
		||||
            # Finally, links to our own GitHub organization should always work.
 | 
			
		||||
            return False
 | 
			
		||||
            # We want to check these links but due to rate limiting from GitHub, these checks often
 | 
			
		||||
            # fail in the CI. Thus, we should treat these as external links for now.
 | 
			
		||||
            # TODO: Figure out how to test github.com/zulip links in CI.
 | 
			
		||||
            return True
 | 
			
		||||
        return True
 | 
			
		||||
 | 
			
		||||
    def check_fragment(self, response: Response) -> None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user