Comments (8)
@sylvestre Test should run across all the function right? It needs api_key to call the apis. Any test api_key is available? If so, we dont need to use the config.json, rather we can hard cord this.
from bugbot.
@sylvestre https://github.com/sylvestre In most of the modules getting
it from config file, instead of that we can parse it in a common place and
pass it to the methods, which will help us when we import that modules in
to some other modules.
from bugbot.
I am not sure if a public api_key is available. I will ask.
For example, it is causing this failure:
https://travis-ci.org/mozilla/relman-auto-nag/builds/86781044
from bugbot.
I asked to @globau and the api_key must remain private. However, I think we could try the solution 3.
Otherwise, we have other solutions:
<glob> so.. the options i see for you are:
<glob> 1. use bugzilla-dev ( bugzilla-dev.allizom.org ). be aware your api-key may be deleted at any time as that system is periodically refreshed. api-keys should not be public
<glob> 2. read-only tests against production. api-keys should still not be public
<glob> 3. unauthenticated testing
<glob> 4. self-host minimal bmo instance, unlimited testing with not api-key privacy issues
<glob> running destructive tests against production (eg. creating test bugs) is a good way to get an account disabled (this has happened before!)
<glob> running destructive tests against bugzilla-dev is ok
from bugbot.
Doubts regarding 4 points mentioned above:
- If we are using bugzilla-dev.allizom.org as API, we have to change the whole APIs in the code when testing( change the APIs to a settings file), since the APIs are not from a settings file.
- read-only tests against production: public API KEY!
- unauthenticated testing: How it works for bugzilla production API or any other APIs, still we need a KEY, isn't it?
- I didn't understand!
from bugbot.
@sylvestre : I have tried to create an api key with bugzilla-dev ( bugzilla-dev.allizom.org ) But I got " Unauthorized Error"
from bugbot.
- "unauthenticated testing" means without an api-key. requests such as bug searching/getting will work, but you only have visibility of public bugs.
- some other projects that need to run tests against bugzilla run all of their tests within multiple docker containers (this makes CI integration easier too). in this scenario you'd build a docker image for bmo and use that as the end-point for your testing.
@anubnair : did you ask on the #bmo irc channel for access (as per the instructions on every page)?
(edited after reading more)
i don't think this issue should be fixed -- tests should require config.json in order to run.
from bugbot.
I think that anoopvalluthadam@caf54aa implemented the change and I am happy with it.
from bugbot.
Related Issues (20)
- Failing to retrieve the `variants.yml` file HOT 1
- Automatically ask for crash related information when people report crashes
- Automatically ask for performance information for reports where the initial comment says Firefox hangs or similar HOT 1
- [file_crash_bug] KeyError: 'cf_status_firefox125' HOT 2
- Use the new Fenix components model to move bugs out of Fenix:General
- Bot will repeatedly set trunk as affected if we fix an issue via a pref-flip and represent that as `firefoxN: disabled` HOT 8
- Add a comment on closed bugs with pending needinfos HOT 2
- [no_assignee] 502 Server Error: Bad Gateway for url: https://bugzilla.mozilla.org/rest/bug/[bug_id]/attachment
- Planned changes to bugmon output
- [regression_set_status_flags] KeyError: 'cf_status_firefox127'
- Allow BugBot to file and update bugs based on the hang stats data from BHR
- Don't nag triage owners about mismatched severity and accessibility severity for no-plan-to-ship bugs HOT 1
- [component] Store thresholds as variables instead of calling `self.get_config()`
- Automatically add `dev-doc-needed` flag HOT 3
- Nag people about requesting a release note
- [component] KeyError: 'class'
- Consider not asking user for perf information where "Performance Impact: --- → none" HOT 1
- [file_crash_bug] Bad Request for url: https://clouseau.moz.tools/api/reports?signatures
- Generate a report of top X bugs that might be moved out of *::General components HOT 1
- don't close bugs for intermittents if there are classifications for it in the current week (= no bugbot comment yet)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugbot.