Difference between revisions of "Content team"
Line 96: | Line 96: | ||
* reenable the recipe in Zimfarm (apriori @RavanJAltaie) | * reenable the recipe in Zimfarm (apriori @RavanJAltaie) | ||
== Library Management == | === Library Management === | ||
=== Deleting a ZIM === | ==== Deleting a ZIM ==== | ||
Deleting a ZIM which has already been published is not a negligible action. It has impact on the library and on the imager, where actions must be coordinated. | Deleting a ZIM which has already been published is not a negligible action. It has impact on the library and on the imager, where actions must be coordinated. | ||
Revision as of 10:47, 2 August 2024
The Content team gathers people in charge of providing books in the ZIM format ("books" being understood here as web content stored as single web archives).
Purpose
Provide web-based educational content to people without internet access, and make the experience as seamless as possible. Access and discovery must be user-friendly and market ready, the content up-to-date and as portable as can technically be.
Goals
- Book curation must remain focused on educational material, broadly construed;
- Books should have proper visual formatting;
- Books should be up-to-date like custom apps;
- The Kiwix Library should allow easy and friendly discovery of content.
Responsabilities
- Content Requests
- Collaborate with requesters to qualify requests properly. Keep them informed.
- Ensure we are allowed and able to fullfill requests
- Initiate new recipes and manage first publishing if new book
- Collaborate with scraper dev. team if necessary
- Keep the tickets up2date
- Scraping
- Ensure Zimfarm works fine and contribute to its improvements with dev. team
- Analyses failures or unexpected behaviors
- Ensure recipes run properly, fix configuration when necessary and contribute to scraper improvements with dev. team
- Ensure workers are online and are properly configured
- Ensure scrapes lifecycle is correct (Reasonable pipeline size, Running scrapes progressing appropriately, not too many failures)
- Library management
- Ensure ZIM filenames and location (paths) are correct
- Ensure ZIM Metadata are correct
- Ensure ZIM are recent and kept up2date (AFAP)
- Ensure library is coherent and user-friendly
Policies
Publishing
- Content has to be legal in Switzerland
- Content should not advertise fringe theory
- Content should betterne free content
- If not free, content should be:
- Open content OR
- Educational content OR
- has an authorization of reproduction
- Any content we publish should
- have (almost) no user visible error
- have proper/correct metadata
- be easily discoverable in the public library
Content Requests
- Allow everybody to request new, changes or deletion of content
- In full transparency track the lifecycle of our content portfolio
- New content should be assessed and vetted content against publishing policy (see above)
- Content requests should be closed:
- when fully implemented (user visible)
- if refusal or impossibility of implementation
- ZIM Medata should be given for new content
- Only once all prerequisites are satisfied, then start with scraping
Scraping
- Scraping leadership means the initiative should come from the content team
- First analysis of error should be done by content team
- If error in scraper is suspected
- Issue should be updated to corresponding scraper code repository
- Scraper problem analysis does not super-seed in any manner content request
- ZIM quality should be vetted against publishing policy
- Any recipe should run successfully first in dev before been put in production
- Hardware resources should be saved
Library Management
Custom Apps
Processes
Content Requests
Scraping
Library Management
Custom Apps
Workflows
Scraping
Change a recipe/ZIM warehouse path
Changing the warehouse path of a recipe / ZIM once a first ZIM has already been produced is not a negligible action. It has impact on the library and on the imager, where actions must be coordinated.
It is hence mandatory that whenever a recipe/ZIM needs to change its warehouse path, a ticket is opened on openzim/zim_requests and assigned to both @RavanJAltaie, @benoit74 and @rgaudin for proper coordination:
- disable the recipe in Zimfarm (apriori @RavanJAltaie)
- wait until there are no more in-progress Orders in the imager that includes those ZIMs (apriori @rgaudin)
- move existing ZIMs on the file server (apriori @benoit74)
- trigger imager catalog refresh right after the move so any Order created right after uses the new URL (apriori @rgaudin)
- update the warehouse path in Zimfarm (apriori @RavanJAltaie)
- reenable the recipe in Zimfarm (apriori @RavanJAltaie)
Library Management
Deleting a ZIM
Deleting a ZIM which has already been published is not a negligible action. It has impact on the library and on the imager, where actions must be coordinated.
It is hence mandatory that whenever a recipe/ZIM needs to be deleted, a ticket is opened on openzim/zim_requests and assigned to both @benoit74 and @rgaudin for proper coordination:
- wait until there are no more in-progress Orders in the imager that includes those ZIMs (apriori @rgaudin)
- delete ZIMs on the file server (apriori @benoit74)
- trigger imager catalog refresh right after the move so any Order created right after uses the new URL (apriori @rgaudin)
Nota: moving a file to the archive (for instance) has to be considered as a file deletion
Zimfarm monitoring
Content team has to monitor the farm at https://farm.openzim.org
Abnormal task duration
At least twice a week, it is necessary to analyze ongoing tasks at and report any task with an abnormal duration.
An abnormal duration is a task which takes longer than 7 days to complete AND which usual duration is either unknown (new tasks) or significantly lower than current duration (few days at least).
For every task with an abnormal duration, an issue must be created in openzim/zim-request with the "Zimfarm Task Duration Issue" template.
The issue must be assigned to:
- the task requestor if the task has been manually requested in the Zimfarm
- Ravan otherwise
Failed tasks
Whenever possible and at least twice a week, it is necessary to report failed tasks in Github issues.
If the task failure is linked to an new recipe currently being fine-tuned, the failure must be reported in the corresponding existing issue in openzim/zim-request.
If the task failure is linked to a recipe which already has a "Zimfarm Recipe Issue" issue opened in openzim/zim-request, then a new comment must be added to the issue.
Otherwise, a new issue must be created in openzim/zim-request with the "Zimfarm Recipe Failure Issue" template. The issue must first be assigned to Ravan for first diagnosis.
In both cases, the "Bug" label must be placed on the issue.
First diagnosis of "Zimfarm Recipe Failure Issue" issues
You may do the first diagnosis only if the issue is assigned to you. If the issue is assigned to someone else, please ask for permission first. This rule can be bypassed for obvious reasons is the person is on long leave, sick, ...
This diagnosis is expected to be done within few days, less than a week at most.
To diagnose "Zimfarm Recipe Issue", following criteria have to be analyzed:
- if this the first failure of the recipe in a row?
- do we have a previous task that worked well?
- we don't have obvious message in the scraper log that indicates the recipe is doomed to fail if ran again ?
If the answer is YES to all three questions, then the recipe must be requested again, this might have been a temporary failure.
Otherwise, either the recipe parameters have to be adjusted if the fix is obvious (e.g. "Title is too long error", ...) and the recipe requested again, or the issue must be raised to Benoit for analysis.
First diagnosis of "Zimfarm Task Duration Issue" issues
You may do the first diagnosis only if the issue is assigned to you. If the issue is assigned to someone else, please ask for permission first. This rule can be bypassed for obvious reason is the person is on long leave, sick, ...
This diagnosis is expected to be done within few hours, less than few days at most.
To diagnose "Zimfarm Task Duration Issue", following criteria have to be analyzed:
- do we still have signs of activity in scraper log (e.g. a log from less than 1 day ago) ?
- for scraper reporting progress, are the progress number relevant to have completion within 30 days ?
- is the task running for less than 30 days ?
If the answer is YES to all three question, then you should let the task continue and reassess within few days.
If the answer is NO to any of these questions, then the issue must be raised to Benoit for analysis.
(draft) Notes from former Youtube workflow (Draft)
- To create a new recipe for youtube files
- It’s recommended to clone an existing Youtube recipe.**
- Create the recipe name as per the naming conventions [here](https://github.com/openzim/overview/wiki/Naming-Convention).
- In the Language space, choose the language of the website you are creating the recipe for.
- From Category space, choose (other)
- From warehouse path space, choose (/.hidden/.dev) always as a first time in order to test the resulted file, if the file is tested and all is correct then you update the recipe with the proper path (videos).
- Make sure the Status is set to Enabled.
- You can choose Periodicity to be monthly or quarterly.
- In Offliner space choose: Youtube
- In platform space choose Youtube.
- Keep the rest the same with no change.
- In Youtube command flags:**
- In Playlist mode: choose (Not Set) if you are doing the recipe for a whole channel.
- If you are doing the recipe for a playlist, choose (Set).
- In Type: choose (Channel) or (Playlist) as per your required file.
- In Youtube ID: type the ID of the channel or the playlist.
- For the API Key: There is a list of keys mostly as per the channel or the playlists sizes, ask for the list to choose the appropriate API Key.
- In Zim Name: the recipe name as per the naming conventions [here](https://github.com/openzim/overview/wiki/Naming-Convention).
- In Title: type the name you want for the output file.
- Description: type a short description of your required zim file.
- Leave Optimisation Cache URL as it is (cloned from old recipe).
- Leave the rest of the fields empty or as per the cloned recipe.
- Finally, click in the bottom on (Update offliner details).
- Review all your entries once again, then go back to the top of the page and click on (Request).
- After about an hour, check the recipe if it failed or succeeded (or the next day if the source website is large).
- If successful, go to this link ([dev.library.kiwix.org](https://dev.library.kiwix.org/)) and check your created file, check the size and check if the file is working properly. If the file does not appear, wait a bit as updates are made every 15 minutes.
- If the file looks good and complete, go back to your recipe, In warehouse path space, change(/.hidden/.dev) to the proper category related to your file content (Wikipedia, Wikihow, … etc).
- Click on Update offliner details and then click on Request again.
- Finally, check the file in (https://library.kiwix.org/ ). If all is good, do not forget to go back to the initial ticket (most likely at zim-requests) and put the link of the output file and close the ticket.
Members
- Popolechien, manager in line
- Ravan, content manager
- Benoit74, scrapers lead dev