Skip to content

Conversation

@flodolo
Copy link
Contributor

@flodolo flodolo commented Oct 28, 2025

Fixes #5646

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.63%. Comparing base (9e4beb7) to head (e9ff14f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5647   +/-   ##
=======================================
  Coverage   85.63%   85.63%           
=======================================
  Files         312      312           
  Lines       30867    30867           
  Branches     8490     8490           
=======================================
  Hits        26434    26434           
  Misses       4009     4009           
  Partials      424      424           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@canova canova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me overall! Sorry for the delay due to conference!

Aside from the comments I mentioned below, it might also make sense to put the config.yml and requirements.txt file into a fluent subdirectory. So they can live in places like .github/fluent/linter_config.yml and .github/fluent/requirements.txt.

- main
pull_request:
paths:
- 'en/**.ftl'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have 'en/**.ftl' path? I think 'locales/en-US/*.ftl' covers it, so we can remove this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the many things I missed when adapting an existing workflow. Starting from scratch would have been cleaner.

Comment on lines +23 to +28
- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand reading this, cache: pip won't work as expected for us here because the requirements.txt file is not in the root directory. You need to specify cache-dependency-path also to make sure that it caches it correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Input cache-dependency-path is used for cases when multiple dependency files are used, they are located in different subdirectories or different files for the hash that want to be used.

We only use one requirement file, unless I missed some Python used elsewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding was that this was used when multiple dependency files are present or they are located in different subdirectories. So to be able to cache, the dependency file has to be in the root directly. Otherwise you need to specify the location since it doesn't look for the sub directories by default.

I also see that you can use pip-install: -r requirements.txt here, but I don't know what benefits it adds. Probably not a huge deal.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah see another text here:

Action will try to search dependencies files (requirements.txt for pip and Pipfile.lock for pipenv) in the repository root (or relative to the repository root, if patterns are used) and throw error if no one is found.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action will try to search dependencies files (requirements.txt for pip and Pipfile.lock for pipenv) in the repository root (or relative to the repository root, if patterns are used) and throw error if no one is found.

That is why I had to create a requirements.txt file. Installing directly from pip broke the workflow
2b7b8a0

Copy link
Member

@canova canova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@canova canova merged commit d442348 into main Nov 4, 2025
16 checks passed
@canova canova mentioned this pull request Nov 12, 2025
canova added a commit that referenced this pull request Nov 12, 2025
Changes:

[Nazım Can Altınova] Use getEmptySourceTable instead of constructing the
table manually (#5641)
[Florian Quèze] Source view for marker stacks (#5633)
[Nazım Can Altınova] Add fallback to funcTable.lineNumber when computing
line timings (#5644)
[Florian Quèze] Show the marker keys instead of the labels in marker
tooltips when alt is pressed. (#5625)
[Francesco Lodolo] Add GitHub workflow to check Fluent reference files
(#5647)
[Nazım Can Altınova] Switch from Gitpod to GitHub Codespaces (#5653)
[Nazım Can Altınova] Migrate from CircleCI to GitHub Actions (#5654)
[Nazım Can Altınova] Run the CI in the production branch and on every
pull request (#5661)
[Nazım Can Altınova] Convert l10n-sync.js from Flow comment types to
JSDoc comments for Typescript (#5659)
[Florian Quèze] Display correct unit in Stack Chart tooltips for size
profiles. (#5658)
[Florian Quèze] Hide track management UI in single track profiles.
(#5656)
[Florian Quèze] Rename hiddenTrackCount to trackCount. (#5665)
[Florian Quèze] Cleanup the profile info panel for size profiles (show
file size and name, hide empty sections). (#5657)
[Markus Stange] Use valibot for symbolication API response validation
(#5666)
[Nazım Can Altınova] Make sure to fetch the full git history for
l10n-sync job in CI (#5667)
[Nazım Can Altınova] Do not switch to call tree when clicking the
activity graph while on sample based panels (#5672)

And thanks to our localizers:

be: Mikalai Udodau
de: Michael Köhler
el: Jim Spentzos
en-GB: Ian Neal
es-CL: ravmn
fr: Théo Chevalier
fy-NL: Fjoerfoks
ia: Melo46
it: Francesco Lodolo [:flod]
nl: Mark Heijl
pt-BR: Marcelo Ghelman
ru: berry, Valery Ledovskoy
sv-SE: Andreas Pettersson
tr: Grk
zh-CN: Olvcpr423, wxie
zh-TW: Pin-guang Chen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add fluent linter to the project

3 participants