Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
87f9bd47
Commit
87f9bd47
authored
1 year ago
by
Ben Gamari
Committed by
Marge Bot
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
testsuite: Elaborate in interface stability README
This discussion didn't make it into the original MR.
parent
c30cea53
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/tests/interface-stability/README.mkd
+25
-1
25 additions, 1 deletion
testsuite/tests/interface-stability/README.mkd
with
25 additions
and
1 deletion
testsuite/tests/interface-stability/README.mkd
+
25
−
1
View file @
87f9bd47
...
...
@@ -5,7 +5,31 @@ core libraries do not inadvertently change. They use the `utils/dump-decls`
utility to dump all exported declarations of all exposed modules for the
following packages:
*
base
*
`
base
`
These are compared against the expected exports in the test's corresponding
`.stdout`
file.
## Updating expected output
The
`base-exports`
test in particular has rather platform-dependent output.
Consequently, updating its output can be a bit tricky. There are two ways by
which one can do this:
*
Extrapolation: The various platforms'
`base-exports.stdout`
files are
similar enough that one can often apply the same patch of one file to the
others. For instance:
```
for f in testsuite/tests/interface-stability/base-exports.stdout-*; do
git show | sed -e "s/base-exports.stdout/$(basename $f)/" | patch -p1
done
```
In the case of conflicts, increasing the fuzz factor (using
`-F`
) can be
quite effective.
*
Using CI: Each CI job produces a tarball,
`unexpected-test-output.tar.gz`
,
which contains the output produced by the job's failing tests. Simply
download this tarball and extracting the appropriate
`base-exports.stdout-*`
files into this directory.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment